brokerx
1
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?
tyf
3
Hey @brokerx !
There is! You’ll want to take a look at our example signup handler:
// pages/api/auth/[auth0].js
import { handleAuth, handleLogin } from '@auth0/nextjs-auth0';
export default handleAuth({
signup: handleLogin({ authorizationParams: { screen_hint: 'signup' } })
});
system
Closed
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.