Skip to content

authentication

Jana Rajakumar edited this page Feb 20, 2018 · 2 revisions

Login

  • 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 under JWT_EXPIRATION_DELTA.

Verify Token

  • To verify if a token is still valid, sending a POST request to /verifyToken with the token that needs verification, will return the same token if it was successfully verified.
Clone this wiki locally