Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routes not mounting in version 4 - /auth/login 404 #1953

Open
6 tasks done
joshghent opened this issue Mar 10, 2025 · 1 comment
Open
6 tasks done

Routes not mounting in version 4 - /auth/login 404 #1953

joshghent opened this issue Mar 10, 2025 · 1 comment

Comments

@joshghent
Copy link

Checklist

Description

Hi there,
I followed through with the migration to V4 but am struggling to get the /auth/login page to render. It currently shows as a 404.

Reproduction

  1. Removed the auth0 route.ts handle
  2. Updated the .env attributes for v4
  3. Added a middleware.ts file in the app folder.
  4. Added the new lib/auth0.ts file
  5. Updated the callbacks for my app
  6. Removed the userprovider wrapper for my app and migrated everything over to session.user

All code was largely copy paste from the docs.

Additional context

No response

nextjs-auth0 version

4.0.3

Next.js version

15.2.1

Node.js version

22.14.0

@lial2
Copy link

lial2 commented Mar 13, 2025

getting same issue with 404 /auth/login, /auth/logout.

and then I try the v3 url I get 405 for /api/auth/login, /api/auth/logout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants