-
Notifications
You must be signed in to change notification settings - Fork 432
Open
Labels
Description
Checklist
- The issue can be reproduced in the nextjs-auth0 sample app (or N/A).
- I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- 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
Hi everyone!
I’m currently trying to migrate my nextjs app to v4. I went through all the docs, examples, and I am already stuck on the first step when simply using auth0 client instance in middleware. I’m getting React not defined error
and could not find any similar topics. I’m importing the Auth0Client class from /server path (which should not use any React imo) and getting the error.
I’m using the Pages router, and NextJS version is 14.2.32.
Reproduction
Just import the Auth0 client instance in middleware from lib.auth0.
Additional context
No response
nextjs-auth0 version
4.10.0
Next.js version
14.2.32
Node.js version
18.20