Twitch provider callback accesstoken #6000
Replies: 1 comment
-
According to this page : https://next-auth.js.org/configuration/nextjs#in-app-router You need to pass For Page Router For App Router to get the accessToken you defined in those very options as callback for the session. It took me some time to realize it was my problem, since this post is very visible on Google for this specific problem I hope it can solve the issue for you guys. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone,
I'm trying since a few days to get the twitch access token after logon by following the getting started doc. The authentication is working but for moment I can't still get my access token to use it for the api call to twitch.
With the debug mode enabled, I can see it present in the account object but trying to defined the callback to store it and pass it to the session seems not working. Also trying to console log in the jwt callback does not display any log in my console. It's look like it's not passing in it and so in my session I have only have my user(name, email, image) and expires data.
Can someone tell me what I'm doing wrong to fix it ?
My NextAuth api file under api/auth :
I've done many search before creating this topic and found nothing helping me after many tried so sorry if it's really a stupid mistake to fix it.
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions