[🐴] better error message for "Bad token scope" error (#4194)

* better error message for "Bad token scope" error

* log -> sign
zio/stable
Samuel Newman 2024-05-23 18:05:30 +01:00 committed by GitHub
parent 5217876f24
commit b093e0b673
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,9 @@ export function cleanError(str: any): string {
if (str.includes('Upstream Failure')) {
return 'The server appears to be experiencing issues. Please try again in a few moments.'
}
if (str.includes('Bad token scope')) {
return 'This feature is not available while using an App Password. Please sign in with your main password.'
}
if (str.startsWith('Error: ')) {
return str.slice('Error: '.length)
}