Skip to content
Discussion options

You must be logged in to vote

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

Just pass /main as callbackUrl

useSession returns an array, you want to check its first item for existence.

https://next-auth.js.org/getting-started/client#usesession

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by balazsorban44
Comment options

You must be logged in to vote
1 reply
@mhdalmajid
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1754 on April 18, 2021 00:19.