Update authentication context provider

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 705f2157-ef97-4fbd-89e4-8c7f2ecaea90
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ed01c5f-a82d-405a-b728-b2e3d127c60c/b408bbe4-4c10-4fc7-841c-db0b01b6dfe7.jpg
This commit is contained in:
alphaeusmote
2025-04-10 02:45:58 +00:00
parent cafb20ae96
commit e6f949d69a
+12 -12
View File
@@ -124,19 +124,19 @@ export function AuthProvider({ children }: { children: ReactNode }) {
},
});
const authContextValue: AuthContextType = {
user: user ?? null,
isLoading,
error,
loginMutation,
ldapLoginMutation,
initiateOidcLogin,
logoutMutation,
registerMutation,
};
return (
<AuthContext.Provider
value={{
user: user ?? null,
isLoading,
error,
loginMutation,
ldapLoginMutation,
initiateOidcLogin,
logoutMutation,
registerMutation,
}}
>
<AuthContext.Provider value={authContextValue}>
{children}
</AuthContext.Provider>
);