Skip to content

How to manually trigger next-auth to refresh the JWT? #4229

Answered by aman-godara-ria
MaxRandle asked this question in Help
Discussion options

You must be logged in to vote

Just happened to stumble upon this solution to update session: https://next-auth.js.org/getting-started/client#updating-the-session
This seems to solve exactly what we are trying to solve here. @MaxRandle

Replies: 22 comments 56 replies

Comment options

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

Comment options

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

@1finedev
Comment options

@toomus
Comment options

@sabres207
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

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

@smithmilner
Comment options

Comment options

You must be logged in to vote
9 replies
@maltesa
Comment options

@rmptf
Comment options

@maltesa
Comment options

@rmptf
Comment options

@JorjeRedemption
Comment options

Comment options

You must be logged in to vote
6 replies
@MaxRandle
Comment options

@IDrumsey
Comment options

@Chamberlainfrancis
Comment options

@selenecodes
Comment options

@LookLukeLemon
Comment options

Comment options

You must be logged in to vote
3 replies
@iakovosvo
Comment options

@zenflow
Comment options

@iakovosvo
Comment options

Comment options

You must be logged in to vote
7 replies
@emroot
Comment options

@AllenWilliamson
Comment options

@emroot
Comment options

@kodobrody
Comment options

@AllenWilliamson
Comment options

Comment options

You must be logged in to vote
3 replies
@matthewpavkov
Comment options

@ayalon
Comment options

@atomcat1978
Comment options

Comment options

You must be logged in to vote
3 replies
@pixeliner
Comment options

@yeganathan18
Comment options

@MrBond2104
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

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

@rolanday
Comment options

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
4 replies
@aman-godara-ria
Comment options

@aman-godara-ria
Comment options

@pbell23
Comment options

@aman-godara-ria
Comment options

Comment options

You must be logged in to vote
6 replies
@MaxRandle
Comment options

@HamedBahram
Comment options

@rolanday
Comment options

@y-nk
Comment options

@DibPuelma
Comment options

Answer selected by MaxRandle
Comment options

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

@davidtranjs
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@basememara
Comment options

@basememara
Comment options

@clevermiraz
Comment options

Comment options

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

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