Authenticate Customer

POST/store/:storeCode/auth/:method
publishable key

Authenticate a customer and receive a JWT, or start a third-party OAuth redirect.

When used with a third-party provider (e.g. Google), the response may include `location` — redirect the customer there to continue authentication.

Path Parameters
storeCoderequiredstring

Store slug in the URL (first argument to every SDK store method).

methodrequiredstring

Auth provider. Example: `emailpass`.

Request Body
emailstring

Customer email (emailpass).

passwordstring

Customer password (emailpass).

callback_urlstring

Frontend URL to return to after third-party authentication.

Response

Status

200OK