-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #475 from alexa/lumas/localCred
fix: Local Credential Hijacking fix
- Loading branch information
Showing
5 changed files
with
101 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
CONFIRM_ALLOW_BROWSER_SIGN_IN: [ | ||
{ | ||
message: "Do you confirm that you used the browser to sign in to Alexa Skills Kit Tools?", | ||
type: "confirm", | ||
name: "choice", | ||
default: true, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const inquirer = require("inquirer"); | ||
const questions = require("./questions"); | ||
|
||
module.exports = { | ||
confirmAllowSignIn, | ||
}; | ||
export function confirmAllowSignIn(callback) { | ||
inquirer | ||
.prompt(questions.CONFIRM_ALLOW_BROWSER_SIGN_IN) | ||
.then((answer) => { | ||
callback(null, answer.choice); | ||
}) | ||
.catch((error) => { | ||
callback(error); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters