Closed
Description
Checklist
- The issue can be reproduced in the nextjs-auth0 sample app (or N/A).I have looked into the API documentation and have not found a suitable solution or answer.I have searched the issues and have not found a suitable solution or answer.I have searched the Auth0 Community forums and have not found a suitable solution or answer.I agree to the terms within the Auth0 Code of Conduct.
Description
The README states that:
Redirecting the user after logging out
The returnTo parameter can be appended to the logout to specify where you would like to redirect the user after they have logged out.
For example: /auth/login?returnTo=https://example.com/some-page would redirect the user to the https://example.com/some-page URL after they have logged out.
The correct URL should be /auth/logout
.
Reproduction
Using /auth/login?returnTo=https://example.com/some-page
redirects the user to the login page.
Additional context
Change to /auth/logout
.
nextjs-auth0 version
4.6.0
Next.js version
15.2.4
Node.js version
22.15.0
Activity
tusharpandey13 commentedon May 30, 2025
#2133 is open to fix this typo.