diff --git a/src/runtime/lib/utils/lwa.ts b/src/runtime/lib/utils/lwa.ts index dd22c81..8ae9464 100644 --- a/src/runtime/lib/utils/lwa.ts +++ b/src/runtime/lib/utils/lwa.ts @@ -32,7 +32,7 @@ export async function accessTokenGenerator(lwaOptions: any): Promise { const OAuth: OAuthClient = createOAuth(clientId, clientSecret, lwaAuthorizeHost, lwaTokenHost); const SERVER_PORT = 9090; - const localServerUrl = `http://localhost:${SERVER_PORT}/cb`; + const localServerUrl = `http://127.0.0.1:${SERVER_PORT}/cb`; const authorizeUrl: string = OAuth.authorizationCode.authorizeURL({ redirect_uri: localServerUrl, scope: scopes, diff --git a/src/utils/captchaValidator.ts b/src/utils/captchaValidator.ts index 557b489..6ca0a67 100644 --- a/src/utils/captchaValidator.ts +++ b/src/utils/captchaValidator.ts @@ -30,7 +30,7 @@ async function _openLoginUrlWithRedirectLink(captchaUrl: string, vendorId: strin ["openid.claimed_id", "http://specs.openid.net/auth/2.0/identifier_select"], ["openid.identity", "http://specs.openid.net/auth/2.0/identifier_select"], ["openid.assoc_handle", "amzn_dante_us"], - ["openid.return_to", `${captchaUrl}?vendor_id=${vendorId}&redirect_url=http://localhost:${LOCALHOST_PORT}/captcha`], + ["openid.return_to", `${captchaUrl}?vendor_id=${vendorId}&redirect_url=http://127.0.0.1:${LOCALHOST_PORT}/captcha`], ["openid.pape.max_auth_age", "7200"], ]).toString(); await open(loginUrl.href);