Rerouted (archive, verified). The original repository is gone. This copy comes from an archive (Software Heritage). The Lamdera package server serves a copy recovered from swh:1:rev:6e42bbcb75707ce44273d810b1c9b2ec2eb20c4c (Software Heritage, origin https://github.com/georgesboris/elm-jwt).
What we checked: Software Heritage archived tag 1.0.0 of github.com/georgesboris/elm-jwt at commit 6e42bbcb7570; its commit 6e42bbcb7570 is from 2023-08-16 18:53 UTC, before the version was published (2023-08-16 18:54 UTC); elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip is our own, made from Software Heritage's copy of the files Elm uses, so its SHA-1 is not the published one.
The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.
Details · package.elm-lang.org's zip: https://github.com/georgesboris/elm-jwt/zipball/1.0.0/
A fork of ktonon/elm-jsonwebtoken with the changes below:
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 123Currently supports HMAC digests using SHA224, SHA256, SHA384, and SHA512. If any other alg is used, then decode will fail with DecodeHeaderFailed String.