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 loop on invalid code in onLogout() or fetchUser()

See original GitHub issue

I had error in my fetchUser() function, so it started to redirect back and forth infinitely.

Redirecting back to OAuth doesn’t solve the problem, if the error isn’t on the OAuth authenticator side.

https://github.com/samtgarson/nuxt-oauth/blob/bf4265eadf7aee1385608e0ddf820193edc39a6a/lib/handler.js#L73

This isn’t such a big problem, but was confusing for me at first.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
samtgarsoncommented, Jul 3, 2018

Thanks for the issue report, I didn’t catch that. I’ll put in a fix when I have some time

0reactions
samtgarsoncommented, Jul 12, 2018

✅ Done

Read more comments on GitHub >

github_iconTop Results From Across the Web

Infinite redirect loop, "Invalid authorization request state." #89
I'm trying to get a basic Auth0 app running. I followed the Node example on the Auth0 dashboard but I ran into an...
Read more >
Symfony 6.1 infinite redirect loop on login - Stack Overflow
Since IS_AUTHENTICATED_ANONYMOUSLY was deprecated in 5.3 and removed in 6.0, it is no longer recognized as an "unsecured access" role.
Read more >
Help! I'm Stuck in a Redirect Loop! - ScottBrady91
The client application validates the identity token and decides whether or not to start its own session; Something goes wrong; The user does...
Read more >
Infinite redirects loop on logout with OpenIdConnect/Auth0
We are running with EPiServer 11.3.3 and using IIS. We've based our code upon this docs: https://world.episerver.com/documentation/developer- ...
Read more >
How to Fix Error Too Many Redirects Issue in WordPress
Deactivate All WordPress Plugins. The most common cause of the WordPress redirect loops or 'Too many redirects' issue is a plugin conflict. A ......
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