-
-
Notifications
You must be signed in to change notification settings - Fork 376
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: add guide for NextAuth #1730
base: master
Are you sure you want to change the base?
Conversation
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.
love it ❤️
just a few changes, then merge it
4. Select "Server App". | ||
5. Choose a client name, e.g. "NextAuth Example". | ||
6. Scopes `openid` and `offline_access` are preselected. Add `email` and `profile` to the list. | ||
7. Add the redirect URL, for example `http://localhost:3000/api/auth/callback/ory`. |
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.
7. Add the redirect URL, for example `http://localhost:3000/api/auth/callback/ory`. | |
7. Add the redirect URL, for example, `http://localhost:3000/api/auth/callback/ory`. |
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.
What's strange, I had to use http://localhost:3000/auth/callback/ory
as the Callback URL. Maybe it's because of the new app router? I'm not sure. Probably should just add both of the URLs to the allowed redirect URLs.
The latest updates on your projects. Learn more about Argos notifications ↗︎ Waiting for the first build to start… |
These two need to be merged: |
Once merged I would add a notice to the older next js guide that we recommend using next auth instead as the integration is better than with the ory/integrations package. We should probably de-list the old next-js guide when we do that. |
Related Issue or Design Document
Checklist
If this pull request addresses a security vulnerability,
I confirm that I got approval (please contact security@ory.sh) from the maintainers to push the changes.
Further comments