-
Notifications
You must be signed in to change notification settings - Fork 10
JWT
TeusTan edited this page Jan 8, 2020
·
2 revisions
To get the access and refresh token you need to POST to /users/token
with the following payload:
{'email': <str>, 'password': <str>,}
and if the information is correct it will return two tokens in the following message:
{'refresh': <str>, 'access': <str>}
To refresh and get the new access token you will POST the following to /users/token/refresh
:
{'refresh': <str> }
And it will respond with the access token:
{'access': <str> }