Merged
Conversation
Contributor
|
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? |
Collaborator
Author
|
Thank you for the suggestion @fujiwaracj 🙏🏼 Been using it as a reference for an example, it's helpful. |
manovotny
reviewed
Mar 28, 2024
docs/02-app/01-building-your-application/09-authentication/index.mdx
Outdated
Show resolved
Hide resolved
manovotny
reviewed
Mar 28, 2024
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
manovotny
reviewed
Mar 28, 2024
docs/02-app/01-building-your-application/09-authentication/index.mdx
Outdated
Show resolved
Hide resolved
manovotny
reviewed
Mar 28, 2024
docs/02-app/01-building-your-application/09-authentication/index.mdx
Outdated
Show resolved
Hide resolved
delbaoliveira
commented
Mar 28, 2024
docs/02-app/01-building-your-application/09-authentication/index.mdx
Outdated
Show resolved
Hide resolved
manovotny
reviewed
Mar 28, 2024
manovotny
reviewed
Mar 28, 2024
leerob
reviewed
Mar 28, 2024
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
anthonyshew
reviewed
Mar 28, 2024
docs/02-app/01-building-your-application/09-authentication/index.mdx
Outdated
Show resolved
Hide resolved
Co-authored-by: Michael Novotny <manovotny@gmail.com> Co-authored-by: Anthony Shew <anthonyshew@gmail.com>
Co-authored-by: Michael Novotny <manovotny@gmail.com>
…ex.mdx Co-authored-by: Michael Novotny <manovotny@gmail.com>
leerob
approved these changes
Apr 14, 2024
Contributor
leerob
left a comment
There was a problem hiding this comment.
Good to merge and iterate if we want 😄
OrhanTozan
reviewed
Apr 17, 2024
| import 'server-only' | ||
| import { cookies } from 'next/headers' | ||
|
|
||
| ### Protecting Routes with Middleware |
There was a problem hiding this comment.
@delbaoliveira Hi, why was the "Protecting Routes with Middleware" section removed?
Collaborator
Author
There was a problem hiding this comment.
Hey, it's now called Optimistic checks with Middleware.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-onlyAuthorization:
redirect()layoutcaveatsDX 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?