denisdujota
denisdujota
TTCTheo's Typesafe Cult
Created by denisdujota on 2/27/2024 in #questions
Added Gooogle Provider to NextAuth setup that comes with t3app, but the button doesnt show
So i have email and discord working, but my customer base doesnt really use discord, they are using facebook and google as their main sso provider. Discord provider was nice to get the POC working, but now im running into an issue where the following is happening: I comment out Discord, the button is still there??? it just doesnt do anything. I add Facebook and Google Providers, but they dont show up at all. if i setup a custom page to see what im getting back from nextauth, using const providers = await getProviders(); when i see the array, it has email and discord, even though discord has been commented out, and i dont see facebook or google there. If i add my own button manually: <Link href="#!" onClick={() => signIn("google")}> Sign in with Google </Link> it works fine, so the authOptions definitely has the information and its able to properly complete the auth flow and generate session + token, its just the getProviders method doesnt return all the actual values. what am I missing, i confirm the env vars are available (console log them and values come up). Very confused why its showing the discord button, but not the new ones I added especially if i have disabled discord as provider. Is there some caching happening? Seems like odd behavior.
1 replies