SensibillAuth
interface SensibillAuth
Content copied to clipboard
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
AuthListener
Link copied to clipboard
interface AuthListener
Content copied to clipboard
RegisterListener
Link copied to clipboard
interface RegisterListener
Content copied to clipboard
SaveExpiryTokensListener
Link copied to clipboard
interface SaveExpiryTokensListener
Content copied to clipboard
SessionListener
Link copied to clipboard
Functions
checkPasswordStrength
Link copied to clipboard
open fun checkPasswordStrength(password: String, callback: RegistrationProvider.PasswordStrengthCallback)
Content copied to clipboard
abstract fun checkPasswordStrength(password: String, callback: RegistrationProvider.PasswordStrengthCallback, callbackScope: CoroutineScope)
Content copied to clipboard
forgotPassword
Link copied to clipboard
open fun forgotPassword(email: String, callback: OAuthProvider.ForgetPasswordCallback)
Content copied to clipboard
abstract fun forgotPassword(email: String, callback: OAuthProvider.ForgetPasswordCallback, callbackScope: CoroutineScope)
Content copied to clipboard
getCachedUser
Link copied to clipboard
getCurrUserAccessId
Link copied to clipboard
getTokenProvider
Link copied to clipboard
isSessionCached
Link copied to clipboard
logout
Link copied to clipboard
open fun logout(accessToken: String, accessId: String, callback: SensibillAuth.AuthListener?)
Content copied to clipboard
abstract fun logout(accessToken: String, accessId: String, callback: SensibillAuth.AuthListener?, callbackScope: CoroutineScope)
Content copied to clipboard
registerWithPassword
Link copied to clipboard
open fun registerWithPassword(accessId: String, password: String, callback: SensibillAuth.RegisterListener)
Content copied to clipboard
abstract fun registerWithPassword(accessId: String, password: String, callback: SensibillAuth.RegisterListener, callbackScope: CoroutineScope)
Content copied to clipboard
registerWithUserInfo
Link copied to clipboard
open fun registerWithUserInfo(accessId: String, userInfo: UserInfo, callback: SensibillAuth.RegisterListener)
Content copied to clipboard
abstract fun registerWithUserInfo(accessId: String, userInfo: UserInfo, callback: SensibillAuth.RegisterListener, callbackScope: CoroutineScope)
Content copied to clipboard
resetTemporaryPassword
Link copied to clipboard
open fun resetTemporaryPassword(accessId: String, temporaryPassword: String, newPassword: String, callback: SensibillAuth.AuthListener)
Content copied to clipboard
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)
Content copied to clipboard
signIn
Link copied to clipboard
open fun signIn(accessId: String, password: String, callback: SensibillAuth.SessionListener)
Content copied to clipboard
abstract fun signIn(accessId: String, password: String, callback: SensibillAuth.SessionListener, callbackScope: CoroutineScope)
Content copied to clipboard
switchUser
Link copied to clipboard
userExists
Link copied to clipboard
open fun userExists(accessId: String, callback: RegistrationProvider.AvailabilityCallback)
Content copied to clipboard
abstract fun userExists(accessId: String, callback: RegistrationProvider.AvailabilityCallback, callbackScope: CoroutineScope)
Content copied to clipboard