update bad token error message (#8954)

This commit is contained in:
Samuel Newman
2025-09-03 02:27:52 +03:00
committed by GitHub
parent 01c466a213
commit 670995a649
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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: _(
+1 -1
View File
@@ -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: ')) {