Home > Mobile >  redirecting after logout with Auth0
redirecting after logout with Auth0

Time:06-05

so I recently got the login button to work with a netlify domain and now when I try to click the logout button, I get redirected to localhost:3000 but I want it to be redirected back to the page with the login button, is there a way to do that? here are my details for the URIs:

Allowed callback URLs:

http://localhost:3000,https://auth0-sample-authentication.netlify.app

Allowed Logout URLs

http://localhost:3000,https://auth0-sample-authentication.netlify.app

Allowed Web Origins

http://localhost:3000,https://auth0-sample-authentication.netlify.app

Please tell me if I need to include more code

Thanks,

324hz win21H2 he/him

CodePudding user response:

If I understand you correctly, you need to add returnTo. It is said in docs https://auth0.com/docs/quickstart/spa/react/01-login

  • Related