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.

Auth0 callback url

See original GitHub issue

Your question What should be the callbackUrl to set?

What are you trying to do I’m trying to use nextauth with auth0 as a provider. I followed the guide as suggested and set callback url as http://localhost:3000/api/auth/callback in my application settings at auth0 because i’m testing it locally. But when i click on the login button and select auth0, I’m being redirected to their error page saying Callback URL mismatch. The docs doesn’t make mention of how to setcallbacks. A snapshot of it. Any help with that?

Edit: I finally fixed my issues after changing callbackUrl several times. So the correct callbackUrl is http://localhost:3000/api/auth/callback/auth0. I just needed to append /auth0 at the end.

  • Found the documentation helpful
  • Found documentation but was incomplete
  • Could not find relevant documentation
  • Found the example project helpful
  • Did not find the example project helpful

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
iaincollinscommented, Sep 22, 2020

Edit: I finally fixed my issues after changing callbackUrl several times. So the correct callbackUrl is http://localhost:3000/api/auth/callback/auth0. I just needed to append /auth0 at the end.

Thanks for coming back and updating with the resolution, always apprecaited!

1reaction
ChrisCatescommented, Feb 4, 2022

@iaincollins, could you add this to the documentation on the npm module README.md.

Would be handy to newcomers. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redirect Users - Auth0
During a user's authentication, the redirect_uri request parameter is used as a callback URL. This is where your application receives and processes the...
Read more >
Callback URLs
Callback URLs are the URLs that Auth0 invokes after the authentication process. Auth0 redirects back to this URL and appends additional parameters to...
Read more >
Configure Auth0 Application - Thinkster.io
A callback URL is a URL in your application where Auth0 redirects the user after they have authenticated. The callback URL for your...
Read more >
Auth0 tutorial part 7 how to configure callback URL and logout ...
Auth0 tutorial part 7 how to configure callback URL and logout URL ... 1.2K views 7 months ago Auth0 tutorial for beginners.
Read more >
Auth0 Regular Web App Callback URL issue - Reddit
The callback URL added via the dashboard is suppose to redirect the user after they have authenticated through the Auth0 login UI. I...
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