Skip to content
Discussion options

You must be logged in to vote

Depends on your use case.

getToken is much simpler, but only works with the JWT strategy.

getToken also exposes anything returned from the jwt callback, while getSession only exposes what is returned from the session callback.

Replies: 1 comment 4 replies

Comment options

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

@balazsorban44
Comment options

@DNoel26
Comment options

@balazsorban44
Comment options

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