Safari : getAccessToken() always returns false
See original GitHub issueThe token is getting successfully from the server, but getAccessToken()
always return false
when I debugging into the method, I see that this._storage -> length
= 0
looks like the token didn’t saves in the _storage.
-
OS: MacOs 10.15.5
-
Browser: Safari
-
Version 13.1.1
“angular-oauth2-oidc”: “10.0.3”,
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Authenticating users with Sign in with Apple - Apple Developer
After successfully authenticating the user, the server returns an identity ... at Work & School users, and this claim is "false" or false...
Read more >Troubleshoot Renew Tokens When Using Safari - Auth0
In some cases, renewing tokens with silent authentication does not work as expected with the latest version of the Safari browser. Recent versions...
Read more >Provide optional claims to Azure AD apps - Microsoft Entra
Azure AD returns the ctry optional claim if it's present and the value of the field is a standard two-letter country/region code, such...
Read more >identity.launchWebAuthFlow - Mozilla - MDN Web Docs
This function returns a Promise : if authentication and authorization were successful, the promise is fulfilled with a redirect URL that ...
Read more >Okta-auth-js autoRenew process - Questions
here my accessToken is set to live for 1 hour. At 30 minutes we go get a new one. However this does not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
when I changed the following row:
this.oAuthService.setStorage(sessionStorage);
to:this.oAuthService.setStorage(localStorage);
the problem solved. so the problem is with sessionStorage only.
I’m using normal browsing mode, not Incognito.
Hey OP! Please let us know if/when you’ve had a chance to look at my previous suggestions and were able to help us reproduce the issue, so we could reopen this thread at a time when the rest of us can help out.