500 Error on loginWithRedirect() – redirect_uri and callback configured correctly

Hello,

I’m encountering a 500 Internal Server Error when using loginWithRedirect() in my Single Page Application (SPA) with Auth0.

Here is the error shown in the browser console:

GET https://dev-e21bopw2hfjjip8z.us.auth0.com/authorize?...authorizationParams=[object%20Object]… 500 (Internal Server Error)

Some details:

  • I’m using the auth0-spa-js SDK v1.19
  • The redirect_uri is correctly set to "https://statly.fr/redirect.html" and listed in the Application Settings (Allowed Callback URLs)
  • I’m not passing a malformed object to loginWithRedirect()
  • The error only occurs after login, during the redirection process

Here’s a snippet of the code I’m using:

await auth0.loginWithRedirect();

Hi @hudz.rick,

Welcome to the Auth0 Community!

You can check the details of the error if you click on the “Show details for this error” link:

The link you provided may not be a good representation of the error, since it has missing parameters, but you can provide us more details if you can, so we can look further into it.

Have a good one,
Vlad