{"repo":"princemaple/elixir-jwt","free":true,"listed":false,"github":"https://github.com/princemaple/elixir-jwt","clone":"git clone https://github.com/princemaple/elixir-jwt.git","description":"Yet Another JWT Lib for Elixir","language":"Elixir","stars":16,"topics":["elixir","jwt"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Yet another JWT lib for Elixir This is a rewrite of json web token ex with jwt claims ex merged in, both created by @garyf. Many things were simplified during the rewrite, code was cleaned up as well. Installation The package can be installed by adding yajwt to your list of dependencies in mix.exs : Usage JWT.sign(claims, options) Returns a JSON Web Token string claims (required) map options (required) map alg (optional, default: \"HS256\" ) key (required unless alg is \"none\") Include any JWS JOSE header parameters ([RFC 7515][rfc7515]) in the options map Example JWT.verify(jwt, options) Returns a tuple, either: \\{:ok, claims\\}, a JWT claims set map, if the Message Authentication Code (MAC), or signature, is verified \\{:error, exception}, otherwise \"jwt\" (required) is a JSON web token string options (required) map alg (optional, default: \"HS256\" ) key (required unless alg is \"none\") Example Supported encryption algorithms alg Param Value Digital Signature or MAC Algorithm ------ ------ HS256 HMAC using SHA-256 per [RFC 2104][rfc2104] HS384 HMAC using SHA-384 HS512 HMAC using SHA-512 RS256 RSASSA-PKCS-v1 5 using SHA-256 per [RFC3447][rfc3447] RS384 RSASSA-PKCS-v1 5 using SHA-384 RS512 RSASSA-PKCS-v1 5 using SHA-512 ES256 ECDSA using P-256 and SHA-256 per [DSS][dss] ES384 ECDSA using P-384 and SHA-384 ES512 ECDSA using P-521 and SHA-512 none No digital signature or MAC performed (unsecured) Registered claim names The following claims are supported. They are validated when the JWT","default_branch":null,"files":null,"tree":[],"storefront":"/r/princemaple","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/princemaple/elixir-jwt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}