StaticcurrentReturns the current user ID (if logged in).
StaticcurrentA structure that contains information about the current version of the engine, as reported by the last login attempt.
StaticguestSpecifies a custom token to be used as a guest JWT token for access to the server.
StaticisReturns whether or not the user is logged in.
StaticisReturns whether or not the user is currently attempting a login.
StaticisDetermines if the offline mode is enabled.
StaticisReturns whether or not the user is currently refreshing the token.
StaticisDetermines if a token refresh is required. *
StaticjwtGets the current JWT token, as required by the web services API. This is confidential information.
StaticlatestA structure that contains information about the latest version of the engine, as reported by the last login attempt.
StaticmessageGets the message of the day as returned by the login response.
StaticsubscriptionReturns the cached subscription information for the currently logged in user, if available. The cache is populated automatically on login and cleared on logout.
StaticuserReturns the current user ID (if logged in).
StaticbeginInitiates the OAuth login flow by opening the authorization URL in the system browser. On web builds, the returnURL is derived from the current page location. On desktop builds, the returnURL uses the rsxengine:// custom URL scheme.
StaticclearClears the Guest JWT token.
StaticcompleteCompletes the OAuth login flow with a JWT token received from the redirect callback. This calls LoadLastToken internally to refresh the token and hydrate user info.
The JWT token received from the authorization redirect.
StaticloadSets the last used token as login and refresh it.
StaticlogLogouts the user, if any is currently authenticated.
StaticrefreshRefreshes the cached subscription information from the server. The cache is updated on success and {
StaticrefreshRefreshes the JWT token from the user backend.
StaticsetEnables the offline mode. In offline mode, no changes are synced.
true if the offline mode was enabled.
Static ReadonlyonFired when an OAuth callback URL is received. The parameter is the full URL.
Static ReadonlyonGets called every time the user login/out status changed. First parameter denotes if logged in.
Static ReadonlyonGets called every time the latest version information changes.
Static ReadonlyonGets called every time the user token changed. Either by logout, login or token refresh.
Static ReadonlyonCalled whenever the user changes his encrypted credentials.
Static ReadonlyonFired whenever the cached subscription information is updated, including being cleared on logout.
Static ReadonlyonFired when an automatic token refresh fails. The parameter is the error reason.
Module to handle user logins into RSX Cloud Server. The login mechanism is similar to modern web application where JWT token is issues upon successful login. The token is then used to authenticate the user for further requests. The module also handles token refreshes and offline mode.