Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your QuickStart is out of date. #1931

Open
6 tasks done
travisanderson opened this issue Feb 21, 2025 · 2 comments
Open
6 tasks done

Your QuickStart is out of date. #1931

travisanderson opened this issue Feb 21, 2025 · 2 comments

Comments

@travisanderson
Copy link

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

@travisanderson
Copy link
Author

travisanderson commented Feb 21, 2025

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.

@DarioKolic
Copy link

DarioKolic commented Feb 22, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants