This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
Authorization middleware using JWT for elm-serverless
version 1.0.0
license MIT
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 1.0.0
Committed At 2017-08-28 02:10:12 UTC
ktonon/elm-serverless 4.0.1 <= v < 5.0.0 4.0.1
ktonon/elm-jsonwebtoken 1.0.2 <= v < 2.0.0 1.0.2
elm-lang/core 5.1.1 <= v < 6.0.0 5.1.1
NoRedInk/elm-decode-pipeline 3.0.0 <= v < 4.0.0 3.0.1

README

elm-serverless-auth-jwt

serverless CircleCI

This is authorization middleware for elm-serverless using JSON Web Tokens.

Example

See the demo for a complete usage example.

To run the demo

npm install
npm start

and visit http://localhost:3000. Use curl or Postman to set an Authorization header to Bearer SOME_JWT_TOKEN. The demo secret is "secret". You can change the secret by setting the environment variable demoAuth_auth__secret, before running npm start.