extendTokenExpiration

❗️

Deprecated

Customer token authentication is deprecated. JWT with MediaStore SDK API is recommended instead for endpoints related to customers.

For security and maintainability reasons, we don't want to create permanent tokens for the customers. This API method allows us to extend tokens expiration date for up to 60 days

Parameters

NameTypeDescription
publisherTokenstringYou can find your publisher token at api-keys page.
customerTokenstringToken that identifies the customer, read more in Must know about API section.
extensionTime*integerNumber of seconds added to the current token expiration time. Tokens can be extended by no more than 60 days.

API Request/Response

Request

{
  "method": "extendTokenExpiration",
  "params": {
      "publisherToken": " If13hAEe7gQjhN_nUr_vRwFrXrfdVOaNdfs9vDQ1nz8cCLzb",
      "customerToken": "a6Yrd0ppps0ZOCABdMOc-QhiSIFjJ7tOG_cofAJAETUidkx3",
      "extensionTime": "1234"
  },
  "jsonrpc": "2.0",
  "id": 1
}

Response

{
  "result": {
    "success": true
  },
  "id": "1",
  "jsonrpc": "2.0"
}