JWT Auth plugin for Multicolour
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
.eslintrc
.gitignore
.travis.yml
LICENSE
README.md
index.js
package-lock.json
package.json
session-model.js

README.md

multicolour-auth-jwt

JWT Auth plugin for HapiJS & Multicolour.

Get started by running multicolour plugin-add hapi-jwt

You'll need multicolour_users before you can authorise anyone to use your API.

Logging in

Posting to the /session endpoint will create your session.

curl -X POST http://localhost:1811/session -d '{"email": "hello@newworld.codes","password":"password"}' -H "Accept:application/json"