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