HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulejose-jwt-0.11.0Haskell2010

Jose.Jws

JWS HMAC and RSA signed token support.

Example usage with HMAC:

Example6 expressions
import Jose.Jwsimport Jose.Jwalet Right (Jwt jwt) = hmacEncode HS256 "secretmackey" "public claims"jwt"eyJhbGciOiJIUzI1NiJ9.cHVibGljIGNsYWltcw.GDV7RdBrCYfCtFCZZGPy_sWry4GwfX3ckMywXUyxBsc"hmacDecode "wrongkey" jwtLeft BadSignaturehmacDecode "secretmackey" jwtRight (JwsHeader {jwsAlg = HS256, jwsTyp = Nothing, jwsCty = Nothing, jwsKid = Nothing},"public claims")
Synopsis
  • Packagejose-jwt-0.11.0
  • Exports10
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceJws.hs