-
Notifications
You must be signed in to change notification settings - Fork 1
authentication
Jana Rajakumar edited this page Feb 20, 2018
·
2 revisions
- Any user can login by sending a
POST
request to/login
with the required parameters (username
,password
). - Upon successful login, a
token
will be given. Users can use this token in the request header to perform any authenticated access. - All tokens are set to expiry after
99999 days
. This value can be adjusted in API settings underJWT_EXPIRATION_DELTA
.
- To verify if a token is still valid, sending a
POST
request to/verifyToken
with thetoken
that needs verification, will return the sametoken
if it was successfully verified.