generateCustomerTokenFromPassword

❗️

Deprecated

JSON-RPC generateCustomerTokenFromPassword method is deprecated.

Method should be used on native integrations (mobile / tv) to build login functionality. Customer has to be created prior by registerCustomer method.

🚧

Enterprise account required. Contact us if you're interested about opening Enterprise account.

Parameters

NameTypeDescription
publisherToken*stringYour publisher token. To open enterprise account contact us.
customerEmail*stringEmail of customer
password*stringCustomer's password

Result Parameters

NameTypeDescription
tokenstringCustomer token used to identify the user

API Request/Response

Request

{
  "method": "generateCustomerTokenFromPassword",
  "params": {
      "publisherToken": "XIrx-SjTLVMCsaRSOf2q2hvWKOlrf57yHknDRRRMX-1RfQ7",
      "customerEmail": "[email protected]",
      "password": "password"
  },
  "jsonrpc": "2.0",
  "id": 1
}

Response

{
  "result": {
    "token": "PoJ4JGMg70AJmYgZZOIRhSMKsx0hVEhtVbZY7x4m2OBfEdUG"
  },
  "id": "1",
  "jsonrpc": "2.0"
}