# Looking for a working repo nextjs 15 and auth0 4.0 version

**URL:** <https://community.auth0.com/t/looking-for-a-working-repo-nextjs-15-and-auth0-4-0-version/182590>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [February 21, 2025, 12:06pm UTC](https://community.auth0.com/t/looking-for-a-working-repo-nextjs-15-and-auth0-4-0-version/182590 "2025-02-21T12:06:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumanan12](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kumanan12/32/73126_2.png) [@kumanan12](https://community.auth0.com/u/kumanan12)\
**Post date:** [February 21, 2025, 12:06pm UTC](https://community.auth0.com/t/looking-for-a-working-repo-nextjs-15-and-auth0-4-0-version/182590/1 "2025-02-21T12:06:40Z")

</div>

Ready to post? 🔍 First, try searching for your answer.  
Currently the examples provided by the documentation doesn’t work. I am posting this after searching githubdotcom/auth0/nextjs-auth0  
The documentation says  
The SDK mounts 6 routes:

1. `/auth/login`: the login route that the user will be redirected to to start a initiate an authentication transaction
2. `/auth/logout`: the logout route that must be addedto your Auth0 application’s Allowed Logout URLs
3. `/auth/callback`: the callback route that must be addedto your Auth0 application’s Allowed Callback URLs
4. `/auth/profile`: the route to check the user’s session and return their attributes
5. `/auth/access-token`: the route to check the user’s session and return an access token (which will be automatically refreshed if a refresh token is available)
6. `/auth/backchannel-logout`: the route that will receive a `logout_token` when a configured Back-Channel Logout initiator occurs  
I am getting 404. for login. As per the doc, I am using tag.  
Please advuse.  
Thank you,  
Kumanan

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [February 21, 2025, 5:42pm UTC](https://community.auth0.com/t/looking-for-a-working-repo-nextjs-15-and-auth0-4-0-version/182590/3 "2025-02-21T17:42:30Z")

</div>

Hi @kumanan12,

Welcome to the Auth0 Community!

Can you please provide the code so that we can take a closer look at the problem?

Have a good one,  
Vlad

---

<div class="post-metadata">

**Author:** ![llamerr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/llamerr/32/70826_2.png) [@llamerr](https://community.auth0.com/u/llamerr)\
**Post date:** [February 27, 2025, 11:54am UTC](https://community.auth0.com/t/looking-for-a-working-repo-nextjs-15-and-auth0-4-0-version/182590/4 "2025-02-27T11:54:37Z")

</div>

> [@kumanan12](#):
>
> auth0/nextjs-auth0

I’m not sure what error did he get, but I’m getting this one, when trying with-next-intl example:

⨯ JWEInvalid: Invalid Compact JWE  
at compactDecrypt (.next/server/edge/chunks/node\_modules\_jose\_dist\_browser\_0860c5._.js:4016:15)  
at Module.jwtDecrypt (.next/server/edge/chunks/node\_modules\_jose\_dist\_browser\_0860c5._.js:5034:216)  
at Module.decrypt (.next/server/edge/chunks/node\_modules\_387de1._.js:791:171)  
at async StatelessSessionStore.get (.next/server/edge/chunks/node\_modules\_387de1._.js:1106:33)  
at async AuthClient.handler (.next/server/edge/chunks/node\_modules\_387de1._.js:259:29)  
at async middleware (.next/server/edge/chunks/[root of the server]\_\_e7ccec._.js:120:26)  
at async (.next/server/edge/chunks/_c3f55b._.js:13916:20)  
at async (.next/server/edge/chunks/_c3f55b._.js:6102:28)  
at async adapter (.next/server/edge/chunks/_c3f55b._.js:6053:16)  
at async (node\_modules/next/src/server/web/sandbox/sandbox.ts:149:17)  
○ Compiling /\_error …

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [March 3, 2025, 3:33pm UTC](https://community.auth0.com/t/looking-for-a-working-repo-nextjs-15-and-auth0-4-0-version/182590/5 "2025-03-03T15:33:08Z")

</div>

Hi @llamerr,

Welcome to the Auth0 Community.

You can try clearing your cookies and making sure you provided all the right credentials for the token request.

Also, this post might be of help:

> **[Need help in resolving "Invalid Compact JWE" error · nextauthjs/next-auth ·...](https://github.com/nextauthjs/next-auth/discussions/4255#discussioncomment-7044262)**
>
> Question 💬 I recently upgraded my application from NextAuth v3 to v4, earlier only jwt secret was specified, now removed the jwt secret and only specified the secret under options directly. Everyth...

If you have any other questions feel free to ask us.

Have a good one,  
Vlad

---

<div class="post-metadata">

**Author:** ![llamerr](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/llamerr/32/70826_2.png) [@llamerr](https://community.auth0.com/u/llamerr)\
**Post date:** [March 3, 2025, 5:51pm UTC](https://community.auth0.com/t/looking-for-a-working-repo-nextjs-15-and-auth0-4-0-version/182590/6 "2025-03-03T17:51:18Z")

</div>

Thanks for the help!

Yes, that’s what I ended up doing which seems to fix the problem. Seems like initially created cookie/localStorage values when I did not provide values created that bug.

auth0/nextjs-auth0/issues/1939

---

<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:** [March 17, 2025, 5:51pm UTC](https://community.auth0.com/t/looking-for-a-working-repo-nextjs-15-and-auth0-4-0-version/182590/7 "2025-03-17T17:51:48Z")

</div>

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