Closed
Description
Checklist
- The issue can be reproduced in the nextjs-auth0 sample app (or N/A).I have looked into the API documentation and have not found a suitable solution or answer.I have searched the issues and have not found a suitable solution or answer.I have searched the Auth0 Community forums and have not found a suitable solution or answer.I agree to the terms within the Auth0 Code of Conduct.
Description
I followed the docs to install auth0 in my nextjs project, but the import throws error and there is no server folder in "@auth0/nextjs-auth0" package. How can I use Auth0Client in this case?
my auth0/nextjs-auth0 package version is ^3.7.0
Reproduction
I follow this direction https://auth0.com/docs/quickstart/webapp/nextjs/interactive
Additional context
No response
nextjs-auth0 version
^3.7.0
Next.js version
15.3.2
Node.js version
v22.14.0
Activity
tusharpandey13 commentedon Jun 2, 2025
Hi @deli-ght 👋
For nextjs versions > 13, we recommend using the latest version of our SDK (
4.6.0
as of now).should update your nextjs version. For your reference, https://github.com/auth0-samples/auth0-nextjs-samples/tree/main/Sample-01 contains a working sample app with the latest major
nextjs-auth0
version installed. Our quickstart and github documentation also correspond to thev4.x.x
versions.deli-ght commentedon Jun 2, 2025
@tusharpandey13 Thanks for reply!