Construct a Realm App, either from the Realm App id visible from the Atlas App Services UI or a configuration.
The Realm App id or a configuration to use for this app.
Private
_locationA promise resolving to the App's location url.
Readonly
authenticatorInternal authenticator used to complete authentication requests.
Private
Readonly
baseThe base URL of the app.
Readonly
emailReadonly
fetcherAn object which can be used to fetch responses from the server.
Readonly
idPrivate
Readonly
localLocal app configuration. Useful to determine what name and version an authenticated user is running.
Readonly
storageStorage available for the app.
Private
usersAn array of active and logged-out users. Elements in the beginning of the array is considered more recent than the later elements.
Static
Readonly
CredentialsInstances of this class can be passed to the app.logIn
method to authenticate an end-user.
Static
Private
appA map of app instances returned from calling getApp.
All active and logged-out users:
An array of users active or logged out users (current user being the first).
Information about the current device, sent to the server when authenticating.
A promise of the app URL, with the app location resolved.
Private
createCreate (and store) a new user or update an existing user's access and refresh tokens. This helps de-duplicating users in the list of users known to the app.
A response from the Authenticator.
The type of the authentication provider used.
A new or an existing user.
Private
hydrateLog in a user.
Credentials to use when logging in.
Should the users profile be fetched? (default: true)
A promise resolving to the newly logged in user.
Switch user.
The user or id of the user to switch to.
Static
getGet or create a singleton Realm App from an id. Calling this function multiple times with the same id will return the same instance.
The Realm App id visible from the Atlas App Services UI or a configuration.
The Realm App instance.
Generated using TypeDoc
Atlas App Services Application