From fe49f35017b89e5b7370bfebd091fabde60c0927 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Mon, 10 Nov 2025 00:17:52 +0000 Subject: [PATCH] Add Discord to supported OAuth providers cgen-520b7aed050442f6b12f57fe9e555355 --- client/contexts/AuthContext.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/contexts/AuthContext.tsx b/client/contexts/AuthContext.tsx index 2dd0f9f3..03a35be3 100644 --- a/client/contexts/AuthContext.tsx +++ b/client/contexts/AuthContext.tsx @@ -19,7 +19,7 @@ import { checkProfileComplete, } from "@/lib/aethex-database-adapter"; -type SupportedOAuthProvider = "github" | "google"; +type SupportedOAuthProvider = "github" | "google" | "discord"; interface LinkedProvider { provider: SupportedOAuthProvider; @@ -743,7 +743,7 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ const identities = (user.identities ?? []) as any[]; const supportedLinkedCount = identities.filter((item: any) => - ["github", "google"].includes(item.provider), + ["github", "google", "discord"].includes(item.provider), ).length; const hasEmailIdentity = identities.some( (item: any) => item.provider === "email", @@ -978,7 +978,7 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ }; const linkedProviders = useMemo(() => { - const supported: SupportedOAuthProvider[] = ["github", "google"]; + const supported: SupportedOAuthProvider[] = ["github", "google", "discord"]; if (!user?.identities) return []; return (user.identities as any[]) .filter((identity) =>