Expose profile completion in AuthContext

cgen-3436659538b743fca099f634837b1aa6
This commit is contained in:
Builder.io 2025-09-28 01:02:07 +00:00
parent 175c22c348
commit f5bb409cc2

View file

@ -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<void>;
signUp: (
email: string,
@ -263,6 +265,7 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({
roles,
session,
loading,
profileComplete: checkProfileComplete(profile),
signIn,
signUp,
signInWithOAuth,