#include <app.hpp>
A User
instance represents a single Realm App user account.
A user may have one or more credentials associated with it. These credentials uniquely identify the user to the authentication provider, and are used to sign into a MongoDB Realm user account.
User objects can be accessed from any thread.
◆ stateThe state of the user object.
◆ access_token() std::string realm::user::access_token ( ) constThe user's refresh token used to access the Realm Application.
This is required to make HTTP requests to MongoDB Realm's REST API for functionality not exposed natively. It should be treated as sensitive data.
◆ call_function() [1/4] std::future< std::optional< std::string > > realm::user::call_function ( const std::string & name, const std::string & args_ejson ) constCalls the Atlas App Services function with the provided name and arguments.
Calls the Atlas App Services function with the provided name and arguments.
Calls the Atlas App Services function with the provided name and arguments.
Calls the Atlas App Services function with the provided name and arguments.
The custom data of the user. This is configured in your Atlas App Services app.
◆ identifier() std::string realm::user::identifier ( ) constThe unique MongoDB Realm string identifying this user. Note this is different from an identitiy: A user may have multiple identities but has a single indentifier. See RLMUserIdentity.
◆ log_out() void realm::user::log_out ( std::function< void(std::optional< app_error >)> && callback ) constLogs out the current user
The users state will be set to Removed
is they are an anonymous user or LoggedOut
if they are authenticated by an email / password or third party auth clients If the logout request fails, this method will still clear local authentication state.
Refresh a user's custom data. This will, in effect, refresh the user's auth session.
◆ refresh_custom_user_data() [2/2] void realm::user::refresh_custom_user_data ( std::function< void(std::optional< app_error >)> callback )Refresh a user's custom data. This will, in effect, refresh the user's auth session.
◆ refresh_token() std::string realm::user::refresh_token ( ) constThe user's refresh token used to access the Realm Applcation.
This is required to make HTTP requests to the Realm App's REST API for functionality not exposed natively. It should be treated as sensitive data.
◆ state()The current state of the user.
The documentation for this struct was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4