How do I get and save the access token from discord oauth create-t3-app

Hi, I have been searching around for a solution to this for 3 hours now, I am probably retarded. I am trying to get all the guilds from discord, but I need the access token for authorization using next auth in my t3-app. When adding the token to the session call back it errors out. I tried to use the jwt call back along with the session call back to see if thats what was needed with no luck. Link to solutions that I have tried: https://next-auth.js.org/configuration/callbacks#session-callback https://stackoverflow.com/questions/72759053/not-able-to-get-the-access-token-for-discord-user-next-auth https://github.com/mac-eth/nextjs-nextauth-discord-tutorial
3 Replies
tropic
tropicOP3y ago
Finally figured it out
tropic
tropicOP3y ago
tropic
tropicOP3y ago
I did not know that I needed to enable the jwt specifically in next auth sigh Just incase someone needs this in the future I will leave this up
Want results from more Discord servers?
Add your server