server-worklog/frontend/app/utils/auth.ts

3 lines
96 B
TypeScript

export function isUnauthorized(result: any) {
return result && result.unauthorized === true
}