Closed joe455 closed 6 years ago
You can try debugging with Chrome Developer Tools. You can see in the Network tab if any calls are made and if there is an error you can get a more descriptive message. Also try using non minified version of packages so that the variable names are kept.
localstorage is not clearing on signout method.
I don't really understand. You mean that is the issue?
Sorry for confusing @itrestian .
I am able to authenticate but cognitoUser.signout() is not clearing cache/storage. Is this is a existed issue. ??
I haven't seen this issue brought up before. signOut basically clears all the keys associated with the tokens retrieved from the service, it won't clear any of the data you might have written in your app, just the keys associated with the tokens.
Got it!! Sorry for bothering @itrestian
As part of my usercase I want to auto login the user into the app and show him the profile page.But which is not supported by cognito yet.So to tweak this case, I saved username and password on session storage and calling authenticating using authenticate user method once user confirmed. But for some reason it's not working. Could you somebody please help me.Below is my code.
Auth(){
console.log("auth method");`It's not showing error also :(