[🐴] better error message for "Bad token scope" error (#4194)
* better error message for "Bad token scope" error * log -> signzio/stable
parent
5217876f24
commit
b093e0b673
|
@ -11,6 +11,9 @@ export function cleanError(str: any): string {
|
||||||
if (str.includes('Upstream Failure')) {
|
if (str.includes('Upstream Failure')) {
|
||||||
return 'The server appears to be experiencing issues. Please try again in a few moments.'
|
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: ')) {
|
if (str.startsWith('Error: ')) {
|
||||||
return str.slice('Error: '.length)
|
return str.slice('Error: '.length)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue