#Login via HTTP JSON api to get JWT token
##Client does login request
POST https://myapplication.com/login, body: {username: 'richardgill', password: 'password'}
Server receives request. Takes credentials and checks they are correct.
Server uses secret key: "secretkey123!"
to generate a jwt token. (Using jwt library)