From 8d7f6062259cc982a027cf09b21638a74cce299b Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Tue, 30 Sep 2025 08:29:01 +0000 Subject: [PATCH] Extend AuthContextType cgen-cc388722b36d4c45a1acbca1054d0b2b --- client/contexts/AuthContext.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/contexts/AuthContext.tsx b/client/contexts/AuthContext.tsx index 6b7a0316..2f40df36 100644 --- a/client/contexts/AuthContext.tsx +++ b/client/contexts/AuthContext.tsx @@ -33,13 +33,16 @@ interface AuthContextType { session: Session | null; loading: boolean; profileComplete: boolean; + linkedProviders: LinkedProvider[]; signIn: (email: string, password: string) => Promise; signUp: ( email: string, password: string, userData?: Partial, ) => Promise; - signInWithOAuth: (provider: "github" | "google") => Promise; + signInWithOAuth: (provider: SupportedOAuthProvider) => Promise; + linkProvider: (provider: SupportedOAuthProvider) => Promise; + unlinkProvider: (provider: SupportedOAuthProvider) => Promise; signOut: () => Promise; updateProfile: (updates: Partial) => Promise; refreshProfile: () => Promise;