generateCustomerTokenFromPassword()


Method should be used on native integrations (mobile / tv) to build login functionality. Here you can find more information about native application integrations. Customer has to be created prior by prepareRemoteAuth method or registerCustomer method.

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

Parameters:

Name Type Description
publisherToken string Your publisher token. To open enterprise account contact us.
customerEmail string Email of customer
password string Customer password.

- required parameter

Response Parameters:

Name Type Description
token string Customer token used to identify the user

Request:

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

Response:

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

Remember! you can always check it by yourself using API Console - generateCustomerTokenFromPassword()

Back to Customer API


We use cookies to ensure that we provide you the best service and website experience. Read our Cookie policy for more details.