How to get the discord guilds from the user next-auth
I already tried it with scope but I dont know how to fetch the scope data. I dont find any documentations about scopes on next-auth
https://pastebin.com/MJGJf8K3
Pastebin
import { PrismaAdapter } from "@next-auth/prisma-adapter";import { ...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
![No description](https://cdn.answeroverflow.com/1154508328987279431/ray-so-export1.png)
Solution:Jump to solution
nvm, have to delete the account record of the user.
I changed the scope before I logged in first time, so the token was invalid...
4 Replies
getting 401
Solution
nvm, have to delete the account record of the user.
I changed the scope before I logged in first time, so the token was invalid
The @Answer Overflow bot is open source and does a lot with Next Auth and the Discord api, https://github.com/AnswerOverflow/AnswerOverflow/blob/main/packages/cache/src/discord.ts may be helpful
GitHub
AnswerOverflow/packages/cache/src/discord.ts at main · AnswerOverfl...
Indexing Discord Help Channel Questions into Google - AnswerOverflow/AnswerOverflow
You’re going to need to make tokens refresh otherwise your API calls will break, we do that here: https://github.com/AnswerOverflow/AnswerOverflow/blob/main/packages/auth/src/auth-options.ts