Authenticate Customer
POST
/store/:storeCode/auth/:methodAuthenticate 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
storeCoderequiredstringStore slug in the URL (first argument to every SDK store method).
methodrequiredstringAuth provider. Example: `emailpass`.
Request Body
emailstringCustomer email (emailpass).
passwordstringCustomer password (emailpass).
callback_urlstringFrontend URL to return to after third-party authentication.
Response
Status
200OK