Skip to content
Discussion options

You must be logged in to vote

I believe this is sufficiently documented, but correct me if I'm wrong.

1,2 and 5 are out of the box, you don't need to do anything other than calling signIn("google") on the page you want the user to be logged in at. (you can configure where to return by the callbackUrl option in the second argument, please check the docs).

For 3, I would recommend the signIn callback.
For 4, I would recommend the jwt callback.

https://next-auth.js.org/getting-started/client#specifying-a-callbackurl
https://next-auth.js.org/configuration/callbacks

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Toryn02
Comment options

@balazsorban44
Comment options

Answer selected by Toryn02
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants