com.getsensibill.sensibillauth / SensibillAuth / SessionListener
SessionListener
interface SessionListener
Listener to observe User Sign-in process
Functions
Name | Summary |
---|---|
onFailure | abstract fun onFailure(error: SensibillAuth.AuthError ): Unit Called when Sign-In failed |
onSuccess | abstract fun onSuccess(session: OauthSession): Unit Called when Sign-In succeeded |
Companion Object Functions
Name | Summary |
---|---|
await | suspend fun await(block: ( SensibillAuth.SessionListener ) -> Unit ): Pair <OauthSession?, SensibillAuth.AuthError ?> Helper suspend function to handle a SessionListener in a synchronous manner using suspended coroutines |