Open2b versione 7.2

login-with

Logs in a customer through a third party provider. Facebook is currently supported.

Request

HTTP POST
/api/v8/storefront.login-with
{
  "provider" : "Facebook", // provider, can only be "Facebook" (required) - string
  "credentials" : { // credentials (required) - string -> string
    "id" : 7947163,
    "token" : "3c54cc9cdf94a86e7b43d699f1a9ead4"
  }
}

Response

HTTP headers
X-Customer-Key: 78FzLADvJ3naIe8d/CJQMA
{
  "status" : "ok"
}

Errors

Field Type Description
credentials InvalidValue credentials is not valid
credentials NotFound There is no customer for these credentials