Nuke cookies when TOTP/OTP fails

This commit is contained in:
Natsumi
2025-02-28 10:52:35 +13:00
parent 137608b705
commit b50b4490b4
2 changed files with 60 additions and 22 deletions

View File

@@ -31,7 +31,7 @@ export default class extends baseClass {
code: instance.inputValue.trim()
})
.catch((err) => {
this.promptTOTP();
$app.clearCookiesTryLogin();
throw err;
})
.then((args) => {
@@ -71,7 +71,7 @@ export default class extends baseClass {
code: instance.inputValue.trim()
})
.catch((err) => {
this.promptOTP();
$app.clearCookiesTryLogin();
throw err;
})
.then((args) => {