-
Notifications
You must be signed in to change notification settings - Fork 4
Authorization
Andrei Grigortsev edited this page Dec 6, 2019
·
9 revisions
| type | access | route prefix |
|---|---|---|
| Public | For everyone | /auth |
| name | access | route | type | headers |
|---|---|---|---|---|
| Sign in | public | /signIn | POST | none |
| Sign up | public | /signUp | POST | none |
| Refresh | authorized | /refresh | POST | none |
| Log out | authorized | /logOut | POST | Authorization: Bearer <access token> |
| Log out from all devices | authorized | /logOutAll | POST | Authorization: Bearer <accesstoken> |
| Forgot password | public | /forgot | POST | none |
#Request
{
"email": "String",
"password": "String"
}#Response
{
"access": "String",
"refresh": "String"
}Errors:
| name | description | error const |
|---|---|---|
#Request
{
"email": "String",
"password": "String",
"address": "String",
"name": "String"
}#Response
{
"access": "String",
"refresh": "String"
}Errors:
| name | description | error const |
|---|---|---|