SensibillAuth

interface SensibillAuth

Interface that defines the properties of SensibillAuth Objects. SensibillAuth objects are used to as a way to provide on-device authentication. Functionality includes ability to sign-in (user identifier + password, logout and register new users.

Types

Link copied to clipboard
Link copied to clipboard
interface AuthListener

Generic Authentication listener to monitor common authentication processes

Link copied to clipboard
object Companion
Link copied to clipboard

Listener to observe the user registration process

Link copied to clipboard

Listener to observe User Token storage during sign in.

Link copied to clipboard
interface SessionListener

Listener to observe User Sign-in process

Functions

Link copied to clipboard
open fun checkPasswordStrength(password: String, callback: RegistrationProvider.PasswordStrengthCallback)

Call to check if password provided is valid

abstract fun checkPasswordStrength(password: String, callback: RegistrationProvider.PasswordStrengthCallback, callbackScope: CoroutineScope)
Link copied to clipboard

Call to send the user with the provided email a Reset Email notification

abstract fun forgotPassword(email: String, callback: OAuthProvider.ForgetPasswordCallback, callbackScope: CoroutineScope)
Link copied to clipboard
abstract fun getCachedUser(accessId: String): SensibillUser?

Call to get a cached user

Link copied to clipboard
abstract fun getCurrUserAccessId(): String?

Call to get the current user identifier

Link copied to clipboard

Call to get current token provider attached to SDK

Link copied to clipboard
abstract fun isSessionCached(accessId: String): Boolean

Call to check if a token is cached for the user with the provided user identifier

Link copied to clipboard
open fun logout(accessToken: String, accessId: String, callback: SensibillAuth.AuthListener?)

Call to log-out of the SDK

abstract fun logout(accessToken: String, accessId: String, callback: SensibillAuth.AuthListener?, callbackScope: CoroutineScope)
Link copied to clipboard
open fun registerWithPassword(accessId: String, password: String, callback: SensibillAuth.RegisterListener)

Call to register a user with the provided access identifier and password.

abstract fun registerWithPassword(accessId: String, password: String, callback: SensibillAuth.RegisterListener, callbackScope: CoroutineScope)
Link copied to clipboard
open fun registerWithUserInfo(accessId: String, userInfo: UserInfo, callback: SensibillAuth.RegisterListener)

Call to register a user with the provided user information

abstract fun registerWithUserInfo(accessId: String, userInfo: UserInfo, callback: SensibillAuth.RegisterListener, callbackScope: CoroutineScope)
Link copied to clipboard
open fun resetTemporaryPassword(accessId: String, temporaryPassword: String, newPassword: String, callback: SensibillAuth.AuthListener)

Call to reset the user with accessId's password with a provided new password

abstract fun resetTemporaryPassword(accessId: String, temporaryPassword: String, newPassword: String, callback: SensibillAuth.AuthListener, callbackScope: CoroutineScope)
Link copied to clipboard
open fun signIn(accessId: String, password: String, callback: SensibillAuth.SessionListener)

Call to sign in to the Sensibill SDK with the provided access identifier and password

abstract fun signIn(accessId: String, password: String, callback: SensibillAuth.SessionListener, callbackScope: CoroutineScope)
Link copied to clipboard
abstract fun switchUser(accessId: String)

Call to change the cached user identifier to the provided access id

Link copied to clipboard
open fun userExists(accessId: String, callback: RegistrationProvider.AvailabilityCallback)

Call to check if a user with provided access id exists

abstract fun userExists(accessId: String, callback: RegistrationProvider.AvailabilityCallback, callbackScope: CoroutineScope)