-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Improve auth docs #63140
Improve auth docs #63140
Conversation
Hi there 👋 It looks like this PR introduces broken links to the docs, please take a moment to fix them before merging:
Thank you 🙏 |
Can I suggest adding The Copenhagen Book in the Further Reading section? |
Thank you for the suggestion @fujiwaracj 🙏🏼 Been using it as a reference for an example, it's helpful. |
docs/02-app/01-building-your-application/09-authentication/index.mdx
Outdated
Show resolved
Hide resolved
docs/02-app/01-building-your-application/09-authentication/index.mdx
Outdated
Show resolved
Hide resolved
docs/02-app/01-building-your-application/09-authentication/index.mdx
Outdated
Show resolved
Hide resolved
docs/02-app/01-building-your-application/09-authentication/index.mdx
Outdated
Show resolved
Hide resolved
docs/02-app/01-building-your-application/09-authentication/index.mdx
Outdated
Show resolved
Hide resolved
docs/02-app/01-building-your-application/09-authentication/index.mdx
Outdated
Show resolved
Hide resolved
docs/02-app/01-building-your-application/09-authentication/index.mdx
Outdated
Show resolved
Hide resolved
docs/02-app/01-building-your-application/09-authentication/index.mdx
Outdated
Show resolved
Hide resolved
docs/02-app/01-building-your-application/09-authentication/index.mdx
Outdated
Show resolved
Hide resolved
docs/02-app/01-building-your-application/09-authentication/index.mdx
Outdated
Show resolved
Hide resolved
docs/02-app/01-building-your-application/09-authentication/index.mdx
Outdated
Show resolved
Hide resolved
Co-authored-by: Michael Novotny <[email protected]> Co-authored-by: Anthony Shew <[email protected]>
Co-authored-by: Michael Novotny <[email protected]>
…ex.mdx Co-authored-by: Michael Novotny <[email protected]>
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.
Good to merge and iterate if we want 😄
|
||
### Protecting Routes with Middleware |
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.
@delbaoliveira Hi, why was the "Protecting Routes with Middleware" section removed?
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.
Hey, it's now called Optimistic checks with Middleware.
Clarify best practices for implementing authentication in Next.js, including what Next.js and React features to use and when. With the minimum number of tools, we'll try to teach authentication from first principles (simple password + email), then recommend Next.js-compatible libraries, and further resources.
Authentication:
useFormStatus()
useFormState()
Session Management:
cookies()
sever-only
Authorization:
redirect()
layout
caveatsDX Content: "What is the right way to do authentication?".
Test Example: vercel-labs/app-router-auth#1
This is how I currently visualize it, this diagram is not meant for users, but to help clarify our current understanding. What am I missing?