Members
A dictionary containing users that are currently logged in. The keys in the dictionary are user identities, values are corresponding User objects.
Type:
object
Get the currently logged in user. Throws error if > 1 user logged in, returns undefined if no users logged in.
Type:
User
Gets the identity of this user on the Realm Object Server. The identity is a guaranteed to be unique among all users on the Realm Object Server.
Type:
string
Returns true if this user is an administrator
Type:
bool
Gets the server URL that was used for authentication.
Type:
string
Gets this user's refresh token. This is the user's credential for accessing the Realm Object Server and should be treated as sensitive data.
Type:
string
Methods
- adminToken
- Type:
string
existing admin token
- admin user populated with the given token and server
- server
- Type:
string
authentication server
- username
- Type:
string
- password
- Type:
string
- callback
- Type:
function
called with the following arguments:
error
- an Error object is provided on failureuser
- a valid User object on success
- server
- Type:
string
authentication server
- username
- Type:
string
- password
- Type:
string
- callback
- Type:
function
called with the following arguments:
error
- an Error object is provided on failureuser
- a valid User object on success
- server
- Type:
string
authentication server
- provider
- Type:
string
The provider type
- providerToken
- Type:
string
The access token for the given provider
- callback
- Type:
function
called with the following arguments:
error
- an Error object is provided on failureuser
- a valid User object on success
User
Create an admin user for the given authentication server with an existing token
Parameters:
User
Login a sync user with username and password.
Parameters:
Register a sync user with username and password.
Parameters:
Login a sync user using an external login provider.
Parameters:
Logs out the user from the Realm Object Server.