-
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
POSTrequest to/loginwith the required parameters (username,password). - Upon successful login, a
tokenwill 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
POSTrequest to/verifyTokenwith thetokenthat needs verification, will return the sametokenif it was successfully verified.