post https://mediastoreapi-sandbox.cleeng.com/auths
Use /auths
endpoint to log in the user. Customer authorization is based on JWT, which contains customerId
, publisherId
and expiration date
.
There are two ways of login, by offerId
(if a customer has already chosen an offer) or by publisherId
(in case a customer will choose an offer after authorization).
Response description
Response | Description |
---|---|
jwt | Token used for authorization. It is required for endpoints related to customers. JWT is valid for 15 minutes. It includes customerId , publisherId , and expiration date (to decode use package like jwt-decode). |
refreshToken | A token to generate a new access JWT. Read more about refresh token HERE. |
customerToken | Session/authentication token for JSON RPC API. |
customerId | Customer identifier at Cleeng. |