about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/hooks/useCleanError.ts2
-rw-r--r--src/lib/strings/errors.ts2
2 files changed, 2 insertions, 2 deletions
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: ')) {