Closed centromere closed 7 years ago
In the documentation the example reads:
signClaims jwk (newJWSHeader (Protected, alg)) claims
however, the type of signClaims is:
signClaims
signClaims :: (MonadRandom m, MonadError e m, AsError e) => JWK -> JWSHeader () -> ClaimsSet -> m SignedJWT
In order for it to work the type would have to be:
signClaims :: (MonadRandom m, MonadError e m, AsError e) => JWK -> JWSHeader Protection -> ClaimsSet -> m SignedJWT
or the example would need to be changed to:
signClaims jwk (newJWSHeader ((), alg)) claims
@centromere thanks for reporting!
In the documentation the example reads:
however, the type of
signClaims
is:In order for it to work the type would have to be:
or the example would need to be changed to: