# 500 Error on loginWithRedirect() – redirect\_uri and callback configured correctly

**URL:** <https://community.auth0.com/t/500-error-on-loginwithredirect-redirect-uri-and-callback-configured-correctly/185525>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [April 15, 2025, 8:59pm UTC](https://community.auth0.com/t/500-error-on-loginwithredirect-redirect-uri-and-callback-configured-correctly/185525 "2025-04-15T20:59:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hudz.rick](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hudz.rick/32/73883_2.png) [@hudz.rick](https://community.auth0.com/u/hudz.rick)\
**Post date:** [April 15, 2025, 8:59pm UTC](https://community.auth0.com/t/500-error-on-loginwithredirect-redirect-uri-and-callback-configured-correctly/185525/1 "2025-04-15T20:59:44Z")

</div>

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]](https://dev-e21bopw2hfjjip8z.us.auth0.com/authorize?...authorizationParams=%5Bobject%20Object%5D)… 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:

```js
await auth0.loginWithRedirect();
```

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [April 16, 2025, 1:38pm UTC](https://community.auth0.com/t/500-error-on-loginwithredirect-redirect-uri-and-callback-configured-correctly/185525/2 "2025-04-16T13:38:06Z")

</div>

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:

 ![Screenshot 2025-04-16 at 16.34.50](https://global.discourse-cdn.com/auth0/original/3X/d/1/d11a7b949c421b1c44799ea9674362fc8c6a175b.png)

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 13, 2025, 6:00pm UTC](https://community.auth0.com/t/500-error-on-loginwithredirect-redirect-uri-and-callback-configured-correctly/185525/4 "2025-05-13T18:00:39Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
