I am currently building a Next 14 application using App Router and handling signup, login and logout with @auth0/nextjs-auth0.
app/api/auth/[auth0]/route.ts:
import { handleAuth } from '@auth0/nextjs-auth0';
export const GET = handleAuth();
After a user logs out from an account (clicking a link point to api/auth/logout
) and attempts to sign in using the same browser, the user will always automatically sign in with the previous account without reaching the universal login page.
I tried to clear all local storage and cookies in the browser when testing but the behavior persists. Is this expected behavior? If so, how can I make sure a user must go through the Universal Login Page after signing out from any account?