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.

redirect to home page after silent refresh

See original GitHub issue

Hello, I did silent refreshing regarding your documentation.

When I try to call

this .oauthService .silentRefresh() .then((info) => console.warn('refresh ok', info)) .catch((err) => console.error('refresh error', err)); Then I got message in console:

OAuthSuccessEvent info: null type: "silently_refreshed"

And then app is redirect to main page.

How to prevent this redirecting? Thank you.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:26 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
silamoncommented, Jan 31, 2019

There’s some code (link) that clears the hash fragment after processing the id token. This is not very suitable for whoever uses a HashStrategy in combination with silent refresh. As the code suggests, you can set clearHashAfterLogin: false in AuthConfig to get this solved.

1reaction
itstuebencommented, Mar 9, 2020

We have the same Problems. We ran into redirect in Iframe on Windows with Chrome. Other Constellations are working great. Chrome on Mac works. Windows and Firefox works!

My Fault. Third Party Cookies in Chrome. SRY

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redirect to specific page after refreshing (oidc.js)
The issue: Whenever I refresh the page with F5 or want to go to the specific component connected to route using url only...
Read more >
Silent Refresh - Refreshing Access Tokens when using the ...
Here we have enabled silent refresh using the automaticSilentRenew property. This will cause an event to be fired close to when our access ......
Read more >
Refreshing a Token when using Implicit Flow (Silent Refresh)
To use this approach, setup a redirect uri for the silent refresh. For this, you can set the property silentRefreshRedirectUri in the config...
Read more >
Token lifetimes and refreshing token without redirect in SPA
We actually recently added support for SPAs to be able to receive and use refresh tokens on the front-end via CORS requests, though...
Read more >
Configure Silent Authentication - Auth0
The OpenID Connect protocol supports a prompt=none parameter on the authentication ... the user must be redirected to the Auth0 login page without...
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