mirror of
https://github.com/freedbygrace/ActiveDirectoryManager.git
synced 2026-08-25 10:07:34 +00:00
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:
@@ -124,19 +124,19 @@ export function AuthProvider({ children }: { children: ReactNode }) {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const authContextValue: AuthContextType = {
|
||||||
|
user: user ?? null,
|
||||||
|
isLoading,
|
||||||
|
error,
|
||||||
|
loginMutation,
|
||||||
|
ldapLoginMutation,
|
||||||
|
initiateOidcLogin,
|
||||||
|
logoutMutation,
|
||||||
|
registerMutation,
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AuthContext.Provider
|
<AuthContext.Provider value={authContextValue}>
|
||||||
value={{
|
|
||||||
user: user ?? null,
|
|
||||||
isLoading,
|
|
||||||
error,
|
|
||||||
loginMutation,
|
|
||||||
ldapLoginMutation,
|
|
||||||
initiateOidcLogin,
|
|
||||||
logoutMutation,
|
|
||||||
registerMutation,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{children}
|
{children}
|
||||||
</AuthContext.Provider>
|
</AuthContext.Provider>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user