SSO Login

Important:
This is an exception because, unlike other MediaStore SDK endpoints, this one requires publisherToken for authorization.

Use this endpoint to generate a customer JWT for a customer who has been authenticated with a third-party Single Sign-on (SSO) provider without passing the credentials. This will enable the customer to use other MediaStore SDK features (e.g. Checkout or My Account) without the need to log in. The authentication takes place in the background.

You can use this endpoint by itself for new customers. For existing customer accounts that you already have with a third-party identity provider, please remember to first set up corresponding customer accounts in Cleeng. You can create them via API or by migrating them.

Calling this endpoint updates the customer’s lastLoginDate that you can check with the Fetch customer's data endpoint. If a customer IP address is also passed, lastUserIP field will be updated with this value.

Response description

ResponseDescription
jwtToken used for authorization. It is required for endpoints related to customers. JWT is valid for 24 hours. It includes customerId, publisherId, and expiration date (to decode use package like jwt-decode)
refreshTokenA token to generate a new access JWT. Read more about refresh token HERE
Language
Click Try It! to start a request and see the response here!