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

AuthError
Link copied to clipboard
enum AuthError : Enum<SensibillAuth.AuthError>
AuthListener
Link copied to clipboard
interface AuthListener
Generic Authentication listener to monitor common authentication processes
Companion
Link copied to clipboard
object Companion
RegisterListener
Link copied to clipboard
interface RegisterListener
Listener to observe the user registration process
SaveExpiryTokensListener
Link copied to clipboard
interface SaveExpiryTokensListener
Listener to observe User Token storage during sign in.
SessionListener
Link copied to clipboard
interface SessionListener
Listener to observe User Sign-in process

Functions

checkPasswordStrength
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)
forgotPassword
Link copied to clipboard
open fun forgotPassword(email: String, callback: OAuthProvider.ForgetPasswordCallback)
Call to send the user with the provided email a Reset Email notification
abstract fun forgotPassword(email: String, callback: OAuthProvider.ForgetPasswordCallback, callbackScope: CoroutineScope)
getCachedUser
Link copied to clipboard
abstract fun getCachedUser(accessId: String): SensibillUser?
Call to get a cached user
getCurrUserAccessId
Link copied to clipboard
abstract fun getCurrUserAccessId(): String?
Call to get the current user identifier
getTokenProvider
Link copied to clipboard
abstract fun getTokenProvider(): TokenProvider
Call to get current token provider attached to SDK
isSessionCached
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
logout
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)
registerWithPassword
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)
registerWithUserInfo
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)
resetTemporaryPassword
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)
signIn
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)
switchUser
Link copied to clipboard
abstract fun switchUser(accessId: String)
Call to change the cached user identifier to the provided access id
userExists
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)