The first time I downloaded this and started it, it hung during login. Developer tools shows me the following error:
auth0-spa-js.production.js:1774 Uncaught (in promise) Error: Expiration Time (exp) claim must be a number present in the ID token
at mr (auth0-spa-js.production.js:1774)
at e._verifyIdToken (auth0-spa-js.production.js:1830)
at e. (auth0-spa-js.production.js:1959)
at auth0-spa-js.production.js:141
at Object.next (auth0-spa-js.production.js:153)
at a (auth0-spa-js.production.js:42)
I did not modify the code in any way. http://localhost:3000 is authorized in all the right places for my app. I know it’s a new SDK. Does it work?
I downloaded and tried again. This time, I could log in, but page refresh causes me to log out. On checking the log, it says that silent authentication failed.
I'm not sure that this is a problem with the sample code per se. I've actually had this problem with several code examples from the auth0 blog as well, so I think it might be a more general issue with the SDK.
The first time I downloaded this and started it, it hung during login. Developer tools shows me the following error:
auth0-spa-js.production.js:1774 Uncaught (in promise) Error: Expiration Time (exp) claim must be a number present in the ID token at mr (auth0-spa-js.production.js:1774) at e._verifyIdToken (auth0-spa-js.production.js:1830) at e. (auth0-spa-js.production.js:1959)
at auth0-spa-js.production.js:141
at Object.next (auth0-spa-js.production.js:153)
at a (auth0-spa-js.production.js:42)
I did not modify the code in any way. http://localhost:3000 is authorized in all the right places for my app. I know it’s a new SDK. Does it work?
I downloaded and tried again. This time, I could log in, but page refresh causes me to log out. On checking the log, it says that silent authentication failed.
I'm not sure that this is a problem with the sample code per se. I've actually had this problem with several code examples from the auth0 blog as well, so I think it might be a more general issue with the SDK.
See the following threads in the community: https://community.auth0.com/t/react-spa-quickstart-doesnt-work/34108 https://community.auth0.com/t/failed-silent-auth-login-required/33165/18 https://community.auth0.com/t/silent-auth-fails-except-in-incognito-mode/34104/2