Skip to content

Commit

Permalink
chore: improving a comment to refer to an issue
Browse files Browse the repository at this point in the history
  • Loading branch information
LucioMS committed Jun 14, 2023
1 parent 40d98ef commit 7c8107a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/controllers/authorization-controller/index.js
Expand Up @@ -149,13 +149,12 @@ module.exports = class AuthorizationController {
const requestUrl = request.url;
const requestQuery = url.parse(requestUrl, true).query;

// Response from the browser with authentication code
if (requestUrl.startsWith("/cb?code")) {
response.end(messages.ASK_SIGN_IN_SUCCESS_MESSAGE);
ui.confirmAllowSignIn((error, confirmSignInChoice) => {
// After confirmed or not browser sign in, closes the socket/port
// with server.destroy().
// We need to keep the port open so a local hacker is not be able to
// open that port until we get an answer in confirmAllowSignIn
// Closing the socket port with server.destroy() only after confirmation question.
// See https://github.com/alexa/ask-cli/issues/476
server.destroy();

if (error) {
Expand Down

0 comments on commit 7c8107a

Please sign in to comment.