Realtime Cloud Storage

isAuthenticated

Checks if a specified authentication token is authenticated.

Sample

curl 'https://storage-backend-prd-useast1.realtime.co/isAuthenticated' -H 'Content-Type: application/json; charset=UTF-8' -d '{ "applicationKey":"[YOUR_APP_KEY]", "authenticationToken":"[YOUR_TOKEN]" }'

Parameters

String applicationKey

Public key of the application's license.

String authenticationToken

Identification of the user using the application.

IsAuthenticatedResponse callback

Function called when the operation completes.

Response

IsAuthenticatedResponse(data, error)

Response of the isAuthenticated operation.

Boolean data

True if the user is authenticated or false if not.

Error error

The attribute that holds the results of the operation if an error occurred.