You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go through oauth flow until you get redirected back to your application
Expected behavior
SDK makes call out to Cognito to complete the auth flow, using the code query parameter from the callback
Screenshots
What is Configured?
Auth.configure({// REQUIRED - Amazon Cognito Regionregion: process.env.AMPLIFY_AUTH_REGION,// OPTIONAL - Amazon Cognito User Pool IDuserPoolId: process.env.AMPLIFY_AUTH_POOL_ID,// OPTIONAL - Amazon Cognito Web Client ID (26-char alphanumeric string)userPoolWebClientId: process.env.AMPLIFY_AUTH_CLIENT_ID,oauth: {domain: process.env.AMPLIFY_OAUTH_DOMAIN,// scope: ['phone', 'email', 'profile', 'openid', 'aws.cognito.signin.user.admin'],redirectSignIn: 'http://localhost:3000/oauth2',redirectSignOut: 'http://localhost:3000/oauth2'// responseType: 'code' // or 'token', note that REFRESH token will only be generated when the responseType is code}})
[ERROR] 42:16.970 OAuth - Error handling auth response. TypeError: Cannot read property 'substr' of null
at OAuth.eval (OAuth.js?1700:190)
at step (OAuth.js?1700:55)
at Object.eval [as next] (OAuth.js?1700:36)
at eval (OAuth.js?1700:30)
at new Promise (<anonymous>)
at __awaiter (OAuth.js?1700:26)
at OAuth._handleImplicitFlow (OAuth.js?1700:186)
at OAuth.eval (OAuth.js?1700:246)
at step (OAuth.js?1700:55)
at Object.eval [as next] (OAuth.js?1700:36)
at eval (OAuth.js?1700:30)
at new Promise (<anonymous>)
at __awaiter (OAuth.js?1700:26)
at OAuth.handleAuthResponse (OAuth.js?1700:212)
at AuthClass.eval (Auth.js?bf82:1748)
at step (Auth.js?bf82:44)
at Object.eval [as next] (Auth.js?bf82:25)
at eval (Auth.js?bf82:19)
at new Promise (<anonymous>)
at __awaiter (Auth.js?bf82:15)
at AuthClass._handleAuthResponse (Auth.js?bf82:1710)
at eval (Auth.js?bf82:204)
at eval (urlListener.js?b835:17)
at AuthClass.configure (Auth.js?bf82:198)
at eval (amplify-auth.js?ff1d:3)
at Module../src/plugins/amplify-auth.js (app.js:1228)
at __webpack_require__ (runtime.js:854)
at fn (runtime.js:151)
at eval (index.js:40)
at Module../.nuxt/index.js (app.js:215)
at __webpack_require__ (runtime.js:854)
at fn (runtime.js:151)
at Module.eval (client.js:41)
at eval (client.js:1156)
at Module../.nuxt/client.js (app.js:35)
at __webpack_require__ (runtime.js:854)
at fn (runtime.js:151)
at Object.0 (app.js:1253)
at __webpack_require__ (runtime.js:854)
at checkDeferredModules (runtime.js:46)
at Array.webpackJsonpCallback [as push] (runtime.js:33)
at app.js:1
The text was updated successfully, but these errors were encountered:
Describe the bug
Error handling auth response. TypeError: Cannot read property 'substr' of null
To Reproduce
Auth.federatedSignIn({ provider: 'Facebook' })
Expected behavior
SDK makes call out to Cognito to complete the auth flow, using the
code
query parameter from the callbackScreenshots
What is Configured?
Environment
Additional context
The text was updated successfully, but these errors were encountered: