papsn
papsn
TTCTheo's Typesafe Cult
Created by papsn on 9/21/2023 in #questions
How to get the discord guilds from the user next-auth
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
7 replies
TTCTheo's Typesafe Cult
Created by papsn on 9/21/2023 in #questions
How to get the discord guilds from the user next-auth
getting 401
await fetch("https://discordapp.com/api/v9/users/@me", {
headers: {
Authorization: "Bearer " + account?.access_token,
},
})
.then(async (guilds) => {
console.log(guilds);
console.log(guilds.status);

return guilds;
})
.catch(console.error);
await fetch("https://discordapp.com/api/v9/users/@me", {
headers: {
Authorization: "Bearer " + account?.access_token,
},
})
.then(async (guilds) => {
console.log(guilds);
console.log(guilds.status);

return guilds;
})
.catch(console.error);
7 replies
TTCTheo's Typesafe Cult
Created by papsn on 9/21/2023 in #questions
Error: Rendered more hooks than during the previous render.
thx!
11 replies
TTCTheo's Typesafe Cult
Created by papsn on 9/21/2023 in #questions
Error: Rendered more hooks than during the previous render.
got it, made them to components and used cond. rendering
11 replies
TTCTheo's Typesafe Cult
Created by papsn on 9/21/2023 in #questions
Error: Rendered more hooks than during the previous render.
Makes Sense, but i get an Error that Sessiondata is a String and Not String || undefined
11 replies
TTCTheo's Typesafe Cult
Created by papsn on 9/19/2023 in #questions
create t3 stack init error
thx
8 replies
TTCTheo's Typesafe Cult
Created by papsn on 9/19/2023 in #questions
create t3 stack init error
yes works now
8 replies
TTCTheo's Typesafe Cult
Created by papsn on 9/19/2023 in #questions
create t3 stack init error
nope, just npm create t3-app@latest
8 replies
TTCTheo's Typesafe Cult
Created by papsn on 6/4/2023 in #questions
Invalid environment variables @railway
jea, was the NEXTAUTH_SECRET and NEXTAUTH_URL (url needed https://) and SECRET wasnt set
4 replies