From f5bb409cc2a1befb38da5f07768fd5a80b01b61f Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 28 Sep 2025 01:02:07 +0000 Subject: [PATCH] Expose profile completion in AuthContext cgen-3436659538b743fca099f634837b1aa6 --- client/contexts/AuthContext.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/contexts/AuthContext.tsx b/client/contexts/AuthContext.tsx index e9c5743f..b3db4329 100644 --- a/client/contexts/AuthContext.tsx +++ b/client/contexts/AuthContext.tsx @@ -7,6 +7,7 @@ import { aethexUserService, aethexRoleService, type AethexUserProfile, + checkProfileComplete, } from "@/lib/aethex-database-adapter"; interface AuthContextType { @@ -15,6 +16,7 @@ interface AuthContextType { roles: string[]; session: Session | null; loading: boolean; + profileComplete: boolean; signIn: (email: string, password: string) => Promise; signUp: ( email: string, @@ -263,6 +265,7 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ roles, session, loading, + profileComplete: checkProfileComplete(profile), signIn, signUp, signInWithOAuth,