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