This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
We were not able to find the expected elm-package.json file at this tag.
Tag 1.0.4
Committed At 2018-12-28 21:45:12 UTC

Modules

    README

    elm-jsonwebtoken

    elm-package CircleCI

    JSON Web Token encoder and decoder.

    import JsonWebToken as JWT exposing (hmacSha256)
    
    JWT.encode hmacSha256 Json.Encode.string "secret" "some payload"
        |> JWT.decode Json.Decode.string "secret"
    --> Ok "some payload"
    
    JWT.encode hmacSha256 Json.Encode.int "secret" 123
        |> JWT.decode Json.Decode.int "wrong secret"
    --> Err <| InvalidSecret 123
    

    Currently supports HMAC digests using SHA224, SHA256, SHA384, and SHA512. If any other alg is used, then decode will fail with DecodeHeaderFailed String.