(error: unknown)
| 39 | /** A `WorkOSError` that is a definitive denial (see above), typed on `unknown` |
| 40 | * so auth code holding an untyped failure channel can branch safely. */ |
| 41 | export const isDefinitiveWorkOSDenial = (error: unknown): boolean => |
| 42 | isWorkOSError(error) && isDefinitiveWorkOSDenialStatus(error.status); |
| 43 | |
| 44 | // Every typed exception the WorkOS node SDK throws for an HTTP answer carries a |
| 45 | // numeric `.status` (UnauthorizedException 401, NotFoundException 404, |
no test coverage detected