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.
StaticguestJWTSpecifies 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.
StaticuserReturns the current user ID (if logged in).
StaticclearStaticloadSets the last used token as login and refresh it.
StaticlogPerforms a login attempt with the given username and password.
StaticlogPerforms a login attempt with the given username and password using an encrypted username/password pair.
StaticlogStaticrefreshRefreshes 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 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.
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.