question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Safari : getAccessToken() always returns false

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Mage111commented, Jul 16, 2020

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.

0reactions
jeroenheijmanscommented, Aug 3, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found