User Manager
Manages user authentication. Provides methods for login, logout, change password and the logged-in/out
Types
Base class for the possible statuses of the SmartSpacesSdk
Functions
Change the user password.
Support function to change the user password.
Login the user using server-to-server pre-shared authentication token. This is used when the host app backend registers a token for that user on the Smart Workspaces backend.
Support function to login the user using server-to-server pre-shared authentication token.
Get observable status of the SDK. The Status is a Kotlin sealed class. That means they might contain extra parameters inside such as server messages, or error codes.
Get a LiveData of the logged-in user. This includes name, email, etc.
Logs out the user. The status will immediately change to Status.LoggingOut This process might take a couple of seconds to complete and then the status will change to Status.Initializing
Login the user using OAuth2. This usually happens after a Chrome Custom tab was shown and the user successfully authenticated with the oauth2 provider.
Support function to login the user using OAuth2-