You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, the V4 migration guide is out of date. It mentions a provider with a sample link. This goes to a section of the readme which no longer exists. Leaves me wondering if I can get user from server side or not, without a provider.
Hope this works out for you guys until they update docs:
import {Auth0Client} from '@auth0/nextjs-auth0/server'
export const auth0 = new Auth0Client()
// Auth0Client has following properties
auth0.getAccessToken
auth0.getSession
auth0.updateSession
I assume <UserProvider /> is now <Auth0Provider />
Edit: Migration guide is also helpful
Edit2: Another useful document with examples of V4 implementations
Checklist
Description
https://auth0.com/docs/quickstart/webapp/nextjs is out of date. The env vars are, the userprovider thing is, tons of stuff.
Reproduction
Simply a new auth0 account, first timer, following your guide, and it's outdated. Frustrating.
Additional context
No response
nextjs-auth0 version
4.0.2
Next.js version
15.1.6
Node.js version
20.18.0
The text was updated successfully, but these errors were encountered: