users.currentUser
This method offers alternative signatures:
users.currentUser()
Signature
users.currentUser()
Description
Gets information about the user that is currently authenticated to the Backend Services JavaScript SDK. The success function is called with currentUserResult.
Return Type
Promise - The promise for the request.
users.currentUser([success], [error])
Signature
users.currentUser([success], [error])
Description
Gets information about the user that is currently authenticated to the Backend Services JavaScript SDK. The success function is called with currentUserResult.
Parameters
Parameter Name | Type | Description |
---|---|---|
[success] |
function | A success callback. |
[error] |
function | An error callback. |