User
A user holds the user's metadata and tokens for accessing App Services and Device Sync functionality.
User profile and custom data can be accessed using the extension functions User.profileAsBsonDocument and User.customDataAsBsonDocument.
The user is used to configure synchronized realms with SyncConfiguration.Builder.
See also
Properties
Returns the current access token for the user. If a user logs out, an empty access token is returned.
Gives access to the ApiKeyAuth interface so that users can manage their API keys.
Returns a list of the user's identities as defined by the authentication providers enabled for this user.
Returns the current refresh token for the user. If a user logs out an empty refresh token is returned.
The State this user is in.
Functions
Return the custom user data associated with the user in the Realm App as BsonDocument.
Links the current user with a new user identity represented by the given credentials.
Log the user out of the Realm App. This will unregister them on the device and stop any synchronization to and from the users' Realms. Any Realms owned by the user will not be deleted from the device before User.remove is called.
Get a MongoClient for accessing documents from App Service's Data Source.
Returns the profile for this user as BsonDocument.
Re-fetch custom user data from the Realm App.