# Extra redirect on silent login after upgrade to v2

**URL:** <https://community.auth0.com/t/extra-redirect-on-silent-login-after-upgrade-to-v2/134818>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [May 23, 2024, 9:40am UTC](https://community.auth0.com/t/extra-redirect-on-silent-login-after-upgrade-to-v2/134818 "2024-05-23T09:40:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tibotiber](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tibotiber/32/57348_2.png) [@tibotiber](https://community.auth0.com/u/tibotiber)\
**Post date:** [May 23, 2024, 9:40am UTC](https://community.auth0.com/t/extra-redirect-on-silent-login-after-upgrade-to-v2/134818/1 "2024-05-23T09:40:11Z")

</div>

Hi, i’m using `@auth0/auth0-spa-js` and I’ve just upgraded from `1.22.3` to `2.1.3`. The documentation to guide the upgrade was great, thanks.

One issue i’m observing is if I refresh the page, it does a silent login. On v1, it’s pretty fast and doesn’t leave my domain. On v2, it seems to take one extra step, and redirects to `<mydomain>?code=xxx&state=xxx` temporarily before coming back. It also takes longer.

Is there a new option to get the previous behaviour?

Thanks 🙏

---

<div class="post-metadata">

**Author:** ![tibotiber](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tibotiber/32/57348_2.png) [@tibotiber](https://community.auth0.com/u/tibotiber)\
**Post date:** [May 31, 2024, 3:37am UTC](https://community.auth0.com/t/extra-redirect-on-silent-login-after-upgrade-to-v2/134818/2 "2024-05-31T03:37:56Z")

</div>

Hi, how can we get help? I don’t see any support option.

---

<div class="post-metadata">

**Author:** ![tibotiber](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tibotiber/32/57348_2.png) [@tibotiber](https://community.auth0.com/u/tibotiber)\
**Post date:** [June 10, 2024, 5:10am UTC](https://community.auth0.com/t/extra-redirect-on-silent-login-after-upgrade-to-v2/134818/3 "2024-06-10T05:10:07Z")

</div>

@ty.frith thanks for the help on the other post. If I could abuse while I “hold” you, are you able to help with this or ping someone who might be able to? 😬

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [June 11, 2024, 10:20pm UTC](https://community.auth0.com/t/extra-redirect-on-silent-login-after-upgrade-to-v2/134818/4 "2024-06-11T22:20:10Z")

</div>

Hey there @tibotiber !

> [@tibotiber](#):
>
> Hi, i’m using `@auth0/auth0-spa-js` and I’ve just upgraded from `1.22.3` to `2.1.3`. The documentation to guide the upgrade was great, thanks.

That’s good news - Happy to hear the upgrade was smooth 🙂

> [@tibotiber](#):
>
> One issue i’m observing is if I refresh the page, it does a silent login. On v1, it’s pretty fast and doesn’t leave my domain. On v2, it seems to take one extra step, and redirects to `<mydomain>?code=xxx&state=xxx` temporarily before coming back. It also takes longer.

That’s a great question, I actually recommend opening up an [issue](https://github.com/auth0/auth0-spa-js/issues) against the SDK itself for this one. I am not aware of any option to mirror the previous version behavior, but I’m also not positive why the extra redirect either. The maintainers of the SDK might be able to provide a better answer.

---

<div class="post-metadata">

**Author:** ![tibotiber](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tibotiber/32/57348_2.png) [@tibotiber](https://community.auth0.com/u/tibotiber)\
**Post date:** [June 12, 2024, 2:18am UTC](https://community.auth0.com/t/extra-redirect-on-silent-login-after-upgrade-to-v2/134818/6 "2024-06-12T02:18:00Z")

</div>

Thanks for the pointer 🙂

Issue opened for anyone who may find this and wants to track it: [Extra redirect on silent login after upgrade to v2 · Issue #1277 · auth0/auth0-spa-js · GitHub](https://github.com/auth0/auth0-spa-js/issues/1277)

---

<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:** [June 28, 2024, 8:55pm UTC](https://community.auth0.com/t/extra-redirect-on-silent-login-after-upgrade-to-v2/134818/7 "2024-06-28T20:55:38Z")

</div>

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