From e6f949d69ad986bf2f7d7c4ae36329b20115a496 Mon Sep 17 00:00:00 2001 From: alphaeusmote <41258468-alphaeusmote@users.noreply.replit.com> Date: Thu, 10 Apr 2025 02:45:58 +0000 Subject: [PATCH] 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 --- client/src/hooks/use-auth.tsx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/client/src/hooks/use-auth.tsx b/client/src/hooks/use-auth.tsx index bf6bcb0..5a76c75 100644 --- a/client/src/hooks/use-auth.tsx +++ b/client/src/hooks/use-auth.tsx @@ -124,19 +124,19 @@ export function AuthProvider({ children }: { children: ReactNode }) { }, }); + const authContextValue: AuthContextType = { + user: user ?? null, + isLoading, + error, + loginMutation, + ldapLoginMutation, + initiateOidcLogin, + logoutMutation, + registerMutation, + }; + return ( - + {children} );