diff --git a/frontend/src/services/AuthService.ts b/frontend/src/services/AuthService.ts index 6158c6bd5..38e2377bc 100644 --- a/frontend/src/services/AuthService.ts +++ b/frontend/src/services/AuthService.ts @@ -25,7 +25,7 @@ const login = async () => { }; const logout = async () => { - Auth.signOut(); + await Auth.signOut(); LoginUserState.removeFamUser(); console.log('User logged out.'); };