about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-09-03 02:27:52 +0300
committerGitHub <noreply@github.com>2025-09-02 18:27:52 -0500
commit670995a6492c91ed1da3a2f3a4579c2fc76ce7df (patch)
tree71c3b1ebb93d95d4c8f8690c0303589cf8ef97e7
parent01c466a2134e4db475f7dfc0323106c2d0d3e827 (diff)
downloadvoidsky-670995a6492c91ed1da3a2f3a4579c2fc76ce7df.tar.zst
update bad token error message (#8954)
-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: ')) {