Simple HTTP service for user auth with json web tokens.
To create a user simply post to /create
with a username and password, JWTea will parse the information and generate
a new user for you.
POST /create
Body {
"username": "awaseem",
"password": "shhh!"
}
To login post to /login
with the username and password of an existing user, JWTea will parse the username and password and send you back
the information.
POST /decode
Body {
"username": "awaseem",
"password": "shhh!"
}
To check a token to see if it's valid, post to /check
and JWTea will send a 200 if success otherwise it failed!
POST /check
Body {
"token": "sdfjsdfjdsfkljsdfkldsjlksfjsdf"
}