1 export function isUnauthorizedError(error: Error): boolean {
2 return /^401: .*Unauthorized/.test(error.message);
3 }