diff --git a/src/frontend/src/functions/auth.tsx b/src/frontend/src/functions/auth.tsx index e2e58d4da4..6f541f049c 100644 --- a/src/frontend/src/functions/auth.tsx +++ b/src/frontend/src/functions/auth.tsx @@ -212,6 +212,10 @@ export const doLogout = async (navigate: NavigateFunction) => { await authApi(apiUrl(ApiEndpoints.auth_session), undefined, 'delete').catch( () => {} ); + // remove MFA token (mfa_trusted) + document.cookie = + 'mfa_trusted=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;'; + showLoginNotification({ title: t`Logged Out`, message: t`Successfully logged out`