(cause: unknown)
| 150 | const isErrorWithCode = Schema.is(ErrorWithCode); |
| 151 | |
| 152 | const isJwtVerificationFailure = (cause: unknown): boolean => |
| 153 | isErrorWithCode(cause) && |
| 154 | (cause.code.startsWith("ERR_JWT_") || |
| 155 | cause.code.startsWith("ERR_JWS_") || |
| 156 | cause.code === JWKSNoMatchingKey.code); |
| 157 | |
| 158 | const isJwksSystemFailure = (cause: unknown): boolean => |
| 159 | isErrorWithCode(cause) && (cause.code === JWKSTimeout.code || cause.code === JWKSInvalid.code); |
no outgoing calls
no test coverage detected