Skip to content

Commit 670995a

Browse files
authored
update bad token error message (#8954)
1 parent 01c466a commit 670995a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/hooks/useCleanError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function useCleanError() {
4242
}
4343
}
4444

45-
if (raw.includes('Bad token scope')) {
45+
if (raw.includes('Bad token scope') || raw.includes('Bad token method')) {
4646
return {
4747
raw,
4848
clean: _(

src/lib/strings/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function cleanError(str: any): string {
1717
) {
1818
return t`The server appears to be experiencing issues. Please try again in a few moments.`
1919
}
20-
if (str.includes('Bad token scope')) {
20+
if (str.includes('Bad token scope') || str.includes('Bad token method')) {
2121
return t`This feature is not available while using an App Password. Please sign in with your main password.`
2222
}
2323
if (str.startsWith('Error: ')) {

0 commit comments

Comments
 (0)