add frontend cookie removal of mfa trust (#11768)

This commit is contained in:
Matthias Mair 2026-04-21 02:26:39 +02:00 committed by GitHub
parent 481f25cd32
commit 3c9b014939
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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`