From 99fdd824f4ab591d9c37541d6161d5633fcfcaf3 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 2 Sep 2025 15:35:31 +0300 Subject: [PATCH] update bad token error message --- src/lib/hooks/useCleanError.ts | 2 +- src/lib/strings/errors.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/hooks/useCleanError.ts b/src/lib/hooks/useCleanError.ts index dc9284e900..3b7b575bce 100644 --- a/src/lib/hooks/useCleanError.ts +++ b/src/lib/hooks/useCleanError.ts @@ -42,7 +42,7 @@ export function useCleanError() { } } - if (raw.includes('Bad token scope')) { + if (raw.includes('Bad token scope') || raw.includes('Bad token method')) { return { raw, clean: _( diff --git a/src/lib/strings/errors.ts b/src/lib/strings/errors.ts index 1a010fea6a..6c8177e44b 100644 --- a/src/lib/strings/errors.ts +++ b/src/lib/strings/errors.ts @@ -17,7 +17,7 @@ export function cleanError(str: any): string { ) { return t`The server appears to be experiencing issues. Please try again in a few moments.` } - if (str.includes('Bad token scope')) { + if (str.includes('Bad token scope') || str.includes('Bad token method')) { return t`This feature is not available while using an App Password. Please sign in with your main password.` } if (str.startsWith('Error: ')) {