generateCustomerTokenFromPassword

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.

📘

You can try that method by clicking here

Parameters

Name

Type

Description

publisherToken*

string

Your publisher token. To open enterprise account contact us.

customerEmail*

string

Email of customer

password*

string

Customer's password

Result Parameters

Name

Type

Description

token

string

Customer 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"
}