Skip to content
Discussion options

You must be logged in to vote

You have a typo:

getToken({
  req,
  secret: process.env.NEXTAUTH_SECRET
})

tip, you probably don't need both getSession and getToken. session is the subset of token in most cases, depending on what you do in your session callback

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@balazsorban44
Comment options

@deadcoder0904
Comment options

@deadcoder0904
Comment options

@balazsorban44
Comment options

@balazsorban44
Comment options

Answer selected by deadcoder0904
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