# NextJS - Sending User to Sign-Up

**URL:** <https://community.auth0.com/t/nextjs-sending-user-to-sign-up/116857>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [September 21, 2023, 5:45pm UTC](https://community.auth0.com/t/nextjs-sending-user-to-sign-up/116857 "2023-09-21T17:45:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brokerx](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brokerx/32/50582_2.png) [@brokerx](https://community.auth0.com/u/brokerx)\
**Post date:** [September 21, 2023, 5:45pm UTC](https://community.auth0.com/t/nextjs-sending-user-to-sign-up/116857/1 "2023-09-21T17:45:38Z")

</div>

Hi

I’m using NextJS. Trying to get users to Sign-Up (new login experience). I setup the onClick like this…

onClick={() =\> loginWithRedirect({authorizationParams:{screen\_hint:“signup”}})}

Just realized the NextJS SDK doesn’t have this hook?

const { loginWithRedirect } = **useAuth0();**

Is there something available like this for NextJS?

---

<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:** [September 21, 2023, 10:38pm UTC](https://community.auth0.com/t/nextjs-sending-user-to-sign-up/116857/3 "2023-09-21T22:38:14Z")

</div>

Hey @brokerx !

> [@brokerx](#):
>
> Is there something available like this for NextJS?

There is! You’ll want to take a look at our [example signup handler](https://github.com/auth0/nextjs-auth0/blob/main/EXAMPLES.md#add-a-signup-handler):

```auto
// pages/api/auth/[auth0].js
import { handleAuth, handleLogin } from '@auth0/nextjs-auth0';

export default handleAuth({
  signup: handleLogin({ authorizationParams: { screen_hint: 'signup' } })
});

```

---

<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:** [October 5, 2023, 10:38pm UTC](https://community.auth0.com/t/nextjs-sending-user-to-sign-up/116857/4 "2023-10-05T22:38:40Z")

</div>

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