-
Notifications
You must be signed in to change notification settings - Fork 398
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
Docs: passing user from Server Component #1578
Conversation
@seanparmelee is attempting to deploy a commit to the Auth0 Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @seanparmelee!
example-app/app/layout.tsx
Outdated
@@ -1,4 +1,5 @@ | |||
import './globals.css'; | |||
import { getSession } from '@auth0/nextjs-auth0'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @seanparmelee - we're gonna have to remove this from the sample app because it's making the Edge routes fail ('@auth0/nextjs-auth0'
can only be imported on the Node runtime and layout.tsx
is used in Node and Edge routes)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to remove updates to sample app
Head branch was pushed to by a user without write access
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @seanparmelee 👍
📋 Changes
Updates the docs for
UserProviderProps
as well as updatesexample-app
to demonstrate how to pass a user from a Server Component (as discussed in #1571).📎 References
#1571
🎯 Testing
npm run start:example
Closes #1571