Local storage is missing an ID Token, Please authenticate
See original GitHub issue** Which Category is your question related to? ** Authentication
** What AWS Services are you utilizing? ** Cognito
** Provide additional details e.g. code snippets ** I am using Amplify within Angular 6. Before Angular 6, I was using a much older version of Amplify that didn’t support much more than Cognito with Angular 5 and this workflow worked just fine. I keep seeing this error message reported all over the place when I google it, but I can’t seem to find what the proper resolution is.
When I call Auth().signIn(), I get a cognitoUser back and can see all the details when I output the object to the console
Next when I then try passing the user to Auth().userAttributes(), it causes this error.
“Local storage is missing an ID Token, Please authenticate”
What is the actual cause of this, is there extra configuration that has to be done that I’m not aware of? My config is setup as follows:
{
"Auth": {
"region": "us-east-1",
"userPoolId": "us-east-*******",
"identityPoolId": "us-east-1:***************************",
"userPoolWebClientId": "*****************************"
}
}
Do I need anything additional in either the config or in code to get this back up and running?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:13
Top GitHub Comments
You guys need to use the
completeNewPassword
method instead ofchangePassword
. This will actually complete the auth challenge presented by the API.I am having the same problem as dguisinger.
After Auth.signIn() returns the User object but tokens are not found in browser’s localStorage. Also like dguisinger, the state of my testuser account is ‘requireNewPassword’ as it is created in the AWS Console for Cognito by admin. This may be a factor. calling Auth.userAttributes will produce same error trace as above.
I am using Ionic 3 & Angular 5.
Can we escalate this problem? Thank you.