From 670995a6492c91ed1da3a2f3a4579c2fc76ce7df Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 3 Sep 2025 02:27:52 +0300 Subject: update bad token error message (#8954) --- src/lib/hooks/useCleanError.ts | 2 +- src/lib/strings/errors.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/hooks/useCleanError.ts b/src/lib/hooks/useCleanError.ts index dc9284e90..3b7b575bc 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 1a010fea6..6c8177e44 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: ')) { -- cgit 1.4.1