Overview
When trying to log out, a user is redirected back to the app endpoint and the user is still logged in.
Applies To
- Next JS
- Logout
Cause
Among other causes, it may be due to the App using an old Routing Method. The Auth0 Quickstart uses App Router, and the Official Next JS documentation suggests doing the same. Having a different routing method may result in the app not killing the session properly.
Solution
Implement App Router in the Next JS app.