Skip to content
Discussion options

You must be logged in to vote

using getToken({cookieName: "some-name"}) do seem to work for me! Do you have a reproduction?

This
seem to be in the incorrect place.

Check the docs again: https://next-auth.js.org/configuration/options#jwt-helper

It is a parameter for the getToken() method.

You may also have to change it here: https://next-auth.js.org/configuration/options#cookies

Do note that this can introduce security issues. Can you maybe explain why do you need to change the name of this cookie?

Replies: 6 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

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

@tyrw
Comment options

@balazsorban44
Comment options

@tyrw
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
2 participants
Converted from issue

This discussion was converted from issue #1880 on April 28, 2021 23:21.