Passwordless Login API¶
A user can be logged in without a password using the API documented below. This functionality can be used only in Cloud Code (Java, JS or Codeless).
It is important the REST API is used with the Cloud Code API key.
Method¶
POST
Endpoint URL¶
https://api.backendless.com/application-id/CLOUDCODE-api-key/users/login
where:
Argument | Description |
---|---|
application-id |
the ID of your application. You can obtain the value in the Manage > App Settings section of the Backendless Console. |
CLOUDCODE-api-key |
CloudCode API key of your application. You can obtain the value in the Manage > App Settings section of the Backendless Console. |
Request Headers¶
Content-Type:application/json
where:
Argument | Description |
---|---|
Content-Type |
must be set to application/json . This header is mandatory. |
Request Body¶
{
"objectId" : "user's objectId value"
}
Response Body¶
{
"objectId" : value,
"user-token": value,
"prop-name1":value,
"prop-name2":value,
"prop-name3":value,
...
}
The "objectId"
property is a unique identifier assigned by Backendless to the user account. The "user-token"
value identifies the user session initiated by the Login operation.