add Initialization docs#109
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/nextauthjs/docs/6SWFWMZrktu1jzpVgR6ipbiw1rc8 |
| This way of initializing `NextAuth` is very powerful, but should be used sparingly. | ||
|
|
||
| :::warning | ||
| Changing parts of the request that is essential to `NextAuth` to do it's job - like messing with the [default cookies](http://localhost:3000/configuration/options#cookies) - can have unforeseen consequences, and have the potential to introduce security holes if done incorrectly. Only change those this if you understand these consequences. |
There was a problem hiding this comment.
| Changing parts of the request that is essential to `NextAuth` to do it's job - like messing with the [default cookies](http://localhost:3000/configuration/options#cookies) - can have unforeseen consequences, and have the potential to introduce security holes if done incorrectly. Only change those this if you understand these consequences. | |
| Changing parts of the request that is essential to `NextAuth` to do it's job - like messing with the [default cookies](/configuration/options#cookies) - can have unforeseen consequences, and have the potential to introduce security holes if done incorrectly. Only change those this if you understand these consequences. |
zakaryan2004
left a comment
There was a problem hiding this comment.
Great idea! This will help a lot of users.
I'll test the provider idea again in my project and see if it works this way.
ndom91
left a comment
There was a problem hiding this comment.
Looks mostly good to me! I'm just gonna approve it, but I would either now or sometime later
before going live with v4 GA tighten up some of the copy. Some parts are a bit wordy and could be slightly confusing.
Great idea with this page though, its a super frequently asked about thing huh.
Based on a few questions, this documentation could be the source of truth when explaining how to do custom actions that are too specific to be included in the library.
Some related discussions:
nextauthjs/next-auth#3133
nextauthjs/next-auth#3156
nextauthjs/next-auth#2703