-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Update suggested ways of securing pages and API routes #3973
Comments
getInitialProps
In terms of where we should document I'd also link where we say "Client Side: yes, Server Side: yes" under |
I'm not really sure actually. I want the Client page to go away mostly, or document how a framework-specific client should be implemented (similar to how we have the REST API docs).
|
I think we can close this issue. We've got these two PRs out:
What do you think? |
i think documentation structure need a refresh. it's designed in the same old school fashion. |
@urtheaman we're always open for suggestions - what were you thinking specifically? |
now it's well structured. previously i had to switch b/w tutorials and docs. |
Migrating away from the |
In vercel/next.js#34316 (comment) I concluded that
getInitialProps
really does not play well with our auth model. There are simply much better solutions for this now.We should discourage the usage of it entirely.
https://next-auth.js.org/tutorials/securing-pages-and-api-routes should be updated to also mention Middleware support and finally decide how and where we should document
getServerSession
(#1535)The text was updated successfully, but these errors were encountered: