User authentication (JWT Token)

Get token

POST https://muni-portal-backend.openup.org.za/api/token/

Get access and refresh token for the user

Request Body

Name
Type
Description

password

string

User password

username

string

User name

{
    "access": "JWT.ACCESS.TOKEN",
    "refresh": "JWT.REFRESH.TOKEN"
}

Refresh access token

POST https://muni-portal-backend.openup.org.za/api/token/refresh/

Get new access token by refresh token

Path Parameters

Name
Type
Description

refresh

string

JWT refresh token

{
    "access": "JWT.ACCESS.TOKEN",
    "refresh": "JWT.REFRESH.TOKEN"
}

Last updated