amazon-archives / amazon-cognito-auth-js

The Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.
Apache License 2.0
424 stars 232 forks source link

Following Instructions from Amazon Cognito Auth SDK for JavaScript #181

Open Vincent-Crescente opened 5 years ago

Vincent-Crescente commented 5 years ago

https://github.com/aws/amazon-cognito-auth-js

var authData = { ClientId : AppWebDomain : TokenScopesArray: RedirectUriSignIn : RedirectUriSignOut : IdentityProvider : UserPoolId : AdvancedSecurityDataCollectionFlag : Storage: }; var auth = new AmazonCognitoIdentity.CognitoAuth(authData);

When filled out correctly doing this part gives me a : Uncaught TypeError: this.storage.getItem is not a function at e.value (CognitoAuth.js:392) at new e (CognitoAuth.js:66). These are in files I don't touch.

kavin404 commented 4 years ago

Were you able to resolve this issue?

azarboon commented 4 years ago

I have same issue:

Uncaught TypeError: this.storage.getItem is not a function
    at CognitoAuth.getLastUser (amazon-cognito-auth.js:1356)
    at new CognitoAuth (amazon-cognito-auth.js:981)
    at initCognitoSDK (index.html:205)
    at onLoad (index.html:105)
    at onload (index.html:32)