# Redirect Callback hangs but works on reload

**URL:** <https://community.auth0.com/t/redirect-callback-hangs-but-works-on-reload/96494>\
**Category:** Get Help\
**Tags:** signup-prompt-new-experience, login-experience\
**Created:** [December 14, 2022, 10:10pm UTC](https://community.auth0.com/t/redirect-callback-hangs-but-works-on-reload/96494 "2022-12-14T22:10:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stackref-kmcduffee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stackref-kmcduffee/32/40913_2.png) [@stackref-kmcduffee](https://community.auth0.com/u/stackref-kmcduffee)\
**Post date:** [December 14, 2022, 10:10pm UTC](https://community.auth0.com/t/redirect-callback-hangs-but-works-on-reload/96494/1 "2022-12-14T22:10:07Z")

</div>

This is a SPA React app using `auth0-spa-js: 2.0.1`. When a user registers successfully, they are redirected back to our page (i.e., [https://mysite.org?email\_verified=false&state=12345](https://mysite.org?email_verified=false&state=12345)). When that happens, the app hangs as if not processing the callback. However, while it is hanging, if I reload the page, it loads successfully.

I have the HAR file with the request before and after the reload. Hopefully that will help figure out what is going on here. Thanks!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 15, 2022, 7:45pm UTC](https://community.auth0.com/t/redirect-callback-hangs-but-works-on-reload/96494/3 "2022-12-15T19:45:53Z")

</div>

Hi @stackref-kmcduffee,

I can help if you want to DM me the [HAR](https://auth0.com/docs/troubleshoot/guides/generate-har-files) files.

Just curious, is there a reason you aren’t using [Auth0 React](https://github.com/auth0/auth0-react)?

---

<div class="post-metadata">

**Author:** ![stackref-kmcduffee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stackref-kmcduffee/32/40913_2.png) [@stackref-kmcduffee](https://community.auth0.com/u/stackref-kmcduffee)\
**Post date:** [December 15, 2022, 9:48pm UTC](https://community.auth0.com/t/redirect-callback-hangs-but-works-on-reload/96494/4 "2022-12-15T21:48:55Z")

</div>

According to the documentation, it sounded like the Auth0 React was just for convenience for setting it up. Does it offer more than that?

I actually JUST resolved the issue. I thought I only needed to call the `handleRedirectCallback` if `code` was in the query, but not the case.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 16, 2022, 3:19pm UTC](https://community.auth0.com/t/redirect-callback-hangs-but-works-on-reload/96494/5 "2022-12-16T15:19:47Z")

</div>

> [@stackref-kmcduffee](#):
>
> Auth0 React was just for convenience for setting it up. Does it offer more than that?

It’s a wrapper around the auth0-spa-js SDK, so functionality-wise it should be pretty similar. What it does give you is a way to interact with Auth0 using familiar React concepts. Also, our examples for React use it, which can help if you’re setting things up and need some guidance.

> [@stackref-kmcduffee](#):
>
> I actually JUST resolved the issue. I thought I only needed to call the `handleRedirectCallback` if `code` was in the query, but not the case.

Great, I’ll mark this one resolved.

---

<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:** [December 30, 2022, 3:20pm UTC](https://community.auth0.com/t/redirect-callback-hangs-but-works-on-reload/96494/6 "2022-12-30T15:20:08Z")

</div>

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