SupportUserManager

interface SupportUserManager

Support interface for clients that are not using Kotlin Coroutines.

You can call the functions in this interface from any JVM language.

Functions

changePassword
Link copied to clipboard
abstract fun changePassword(currentPassword: String, newPassword: String, callback: (Result<Unit>) -> Unit): Cancelable
abstract fun changePassword(currentPassword: String, newPassword: String, lifecycleOwner: LifecycleOwner, callback: (Result<Unit>) -> Unit): Cancelable

Support function to change the user password.

externalTokenLogin
Link copied to clipboard
abstract fun externalTokenLogin(authenticationToken: String, callback: (Result<Unit>) -> Unit): Cancelable
abstract fun externalTokenLogin(authenticationToken: String, lifecycleOwner: LifecycleOwner, callback: (Result<Unit>) -> Unit): Cancelable

Support function to login the user using server-to-server pre-shared authentication token.

oAuthLogin
Link copied to clipboard
abstract fun oAuthLogin(redirectedUri: String, callback: (Result<Unit>) -> Unit): Cancelable
abstract fun oAuthLogin(redirectedUri: String, lifecycleOwner: LifecycleOwner, callback: (Result<Unit>) -> Unit): Cancelable

Support function to login the user using OAuth2-

usernamePasswordLogin
Link copied to clipboard
abstract fun usernamePasswordLogin(username: String, password: String, callback: (Result<Unit>) -> Unit): Cancelable
abstract fun usernamePasswordLogin(username: String, password: String, lifecycleOwner: LifecycleOwner, callback: (Result<Unit>) -> Unit): Cancelable

Support function to login the user with direct username (usually a username or email) and password.

Inheritors

UserManager
Link copied to clipboard