# User not logged in after sign up with \`loginWithRedirect\` \`screen\_hint: 'signup'\`

**URL:** <https://community.auth0.com/t/user-not-logged-in-after-sign-up-with-loginwithredirect-screen-hint-signup/140715>\
**Category:** Get Help\
**Tags:** signup-prompt-new-experience, login-experience\
**Created:** [August 8, 2024, 8:11pm UTC](https://community.auth0.com/t/user-not-logged-in-after-sign-up-with-loginwithredirect-screen-hint-signup/140715 "2024-08-08T20:11:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![evan.sk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/evan.sk/32/52908_2.png) [@evan.sk](https://community.auth0.com/u/evan.sk)\
**Post date:** [August 8, 2024, 8:11pm UTC](https://community.auth0.com/t/user-not-logged-in-after-sign-up-with-loginwithredirect-screen-hint-signup/140715/1 "2024-08-08T20:11:07Z")

</div>

When I call

```auto
loginWithRedirect({
  authorizationParams: {
    screen_hint: 'signup',
  },
})

```

To take the user directly to the sign up screen - after signing up the user is not logged in. `isAuthenticated` returns false

However, if I create a an account using

```auto
loginWithRedirect()

```

i.e. direct to the login screen, then click sign up, then create an account - The user is logged in when returning form the sign up flow.

We would like the user to be signed in after returning from the sign up flow using `screen_hint: 'signup'`. I appreciate any help, thanks.

---

<div class="post-metadata">

**Author:** ![evan.sk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/evan.sk/32/52908_2.png) [@evan.sk](https://community.auth0.com/u/evan.sk)\
**Post date:** [August 9, 2024, 2:40pm UTC](https://community.auth0.com/t/user-not-logged-in-after-sign-up-with-loginwithredirect-screen-hint-signup/140715/3 "2024-08-09T14:40:33Z")

</div>

Hi, thanks for the reply! Is there any chance you could elaborate on the options you suggested? Either silent login or a custom rule (I believe this would be an action now since rules are phased out)

For context I’m working on a single page app and would like to implement a sign up button and have the user be logged in post sign up. Right now after signing up the user is redirected back to the app, but the auth0 sdk doesn’t seem to do anything after that. We’re using `auth0-react`

---

<div class="post-metadata">

**Author:** ![evan.sk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/evan.sk/32/52908_2.png) [@evan.sk](https://community.auth0.com/u/evan.sk)\
**Post date:** [August 12, 2024, 8:17pm UTC](https://community.auth0.com/t/user-not-logged-in-after-sign-up-with-loginwithredirect-screen-hint-signup/140715/4 "2024-08-12T20:17:22Z")

</div>

For anyone else who comes across this - The error was on my part - My redirect uri was on a different domain from my login page and that breaks things

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [August 12, 2024, 11:55pm UTC](https://community.auth0.com/t/user-not-logged-in-after-sign-up-with-loginwithredirect-screen-hint-signup/140715/5 "2024-08-12T23:55:49Z")

</div>

Hi @evan.sk

I’m glad you figured this out and shared the solution with the community!

Dawid

---

<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:** [August 26, 2024, 11:56pm UTC](https://community.auth0.com/t/user-not-logged-in-after-sign-up-with-loginwithredirect-screen-hint-signup/140715/6 "2024-08-26T23:56:41Z")

</div>

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