(cause: unknown)
| 128 | const isErrorWithCode = Schema.is(ErrorWithCode); |
| 129 | |
| 130 | const isJwtVerificationFailure = (cause: unknown): boolean => |
| 131 | isErrorWithCode(cause) && |
| 132 | (cause.code.startsWith("ERR_JWT_") || |
| 133 | cause.code.startsWith("ERR_JWS_") || |
| 134 | cause.code === JWKSNoMatchingKey.code); |
| 135 | |
| 136 | const isJwksSystemFailure = (cause: unknown): boolean => |
| 137 | isErrorWithCode(cause) && (cause.code === JWKSTimeout.code || cause.code === JWKSInvalid.code); |
no outgoing calls
no test coverage detected