# SSO is not working

**URL:** <https://community.auth0.com/t/sso-is-not-working/130989>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [April 2, 2024, 2:37pm UTC](https://community.auth0.com/t/sso-is-not-working/130989 "2024-04-02T14:37:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sukru.avcuoglu](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sukru.avcuoglu](https://community.auth0.com/u/sukru.avcuoglu)\
**Post date:** [April 2, 2024, 2:37pm UTC](https://community.auth0.com/t/sso-is-not-working/130989/1 "2024-04-02T14:37:18Z")

</div>

Hi,

I have 2 applications and I want to implement SSO between these two apps. Here is my setup:

- Single Tenant
- Two Auth0 Applications
- Single username DB on Auth0
- Custom Auth0 domain on [auth.x.com](http://auth.x.com/)
- Two React Apps on two domains, [app1.x.com](http://app1.x.com/), [app2.y.com](http://app2.y.com/)
- All domains are in the allowed callback urls list in Auth0 Applications

What I expect to have seamless authentication between two Apps. But after I login the app1, app2 also asks for login

Let’s say I logged in to app1. When I try to login to app2, I am redirected to login page on [auth.x.com](http://auth.x.com/) and I can see that “auth0” named cookie is set. But still it is not redirecting me back to app2.

Please help.

Bests  
Sukru

---

<div class="post-metadata">

**Author:** ![sukru.avcuoglu](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@sukru.avcuoglu](https://community.auth0.com/u/sukru.avcuoglu)\
**Post date:** [April 22, 2024, 9:16am UTC](https://community.auth0.com/t/sso-is-not-working/130989/2 "2024-04-22T09:16:43Z")

</div>

I found the problem.

The problem for me was:

I was using prompt=login option for loginWithRedirect. This will always show the login prompt even if there is a valid session on the server. Just removed prompt=login option and it works now.

---

<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 6, 2024, 9:17am UTC](https://community.auth0.com/t/sso-is-not-working/130989/3 "2024-05-06T09:17:37Z")

</div>

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