# /auth/login 404 not found nextjs V4

**URL:** <https://community.auth0.com/t/auth-login-404-not-found-nextjs-v4/185977>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [April 26, 2025, 5:11am UTC](https://community.auth0.com/t/auth-login-404-not-found-nextjs-v4/185977 "2025-04-26T05:11:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![navprabhat1049](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/navprabhat1049/32/71671_2.png) [@navprabhat1049](https://community.auth0.com/u/navprabhat1049)\
**Post date:** [April 26, 2025, 5:11am UTC](https://community.auth0.com/t/auth-login-404-not-found-nextjs-v4/185977/1 "2025-04-26T05:11:12Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [April 28, 2025, 5:54pm UTC](https://community.auth0.com/t/auth-login-404-not-found-nextjs-v4/185977/3 "2025-04-28T17:54:33Z")

</div>

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](https://github.com/auth0/nextjs-auth0/tree/main?tab=readme-ov-file#getting-started).

You can follow the steps mentioned in here for the [V4 Migration Guide](https://github.com/auth0/nextjs-auth0/blob/main/V4_MIGRATION_GUIDE.md).

I hope this helps, and you can let me know if that fixes your issue.  
Best regards,  
Remus

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 12, 2025, 5:55pm UTC](https://community.auth0.com/t/auth-login-404-not-found-nextjs-v4/185977/4 "2025-05-12T17:55:06Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
