I’m using nextjs 15 and following auth0 dependency “@auth0/nextjs-auth0”: “^4.4.2” for authentication, I’m facing issue when going the url /auth/login it says 404 not found also i couldn’t find any resources to integrate auth0 nextjs V4. i didn’t create api/auth/[auth0]/route.ts i believe it is not needed in the latest version could you please help me resolve the issue?
Hi @navprabhat1049,
Given what you have mentioned above, the 404 not found error occurs due to the missing api/auth/[auth0]/route.ts file from your project. After initializing it, you should be able to call any SDK mounted routes .
You can follow the steps mentioned in here for the V4 Migration Guide.
I hope this helps, and you can let me know if that fixes your issue.
Best regards,
Remus