diff --git a/SharpbinV3.Client/src/lib/utils/totp.ts b/SharpbinV3.Client/src/lib/utils/totp.ts index 0089934..88711a1 100644 --- a/SharpbinV3.Client/src/lib/utils/totp.ts +++ b/SharpbinV3.Client/src/lib/utils/totp.ts @@ -2,7 +2,7 @@ export function parseTotpEnabled(tokenValue: string | null) { if (!tokenValue) return false; try { const payload = JSON.parse(atob(tokenValue.split('.')[1])); - const flag = payload?.totp; + const flag = payload?.totp_enabled; if (typeof flag === 'string') return flag.toLowerCase() === 'true'; return Boolean(flag); } catch {