AuthResultLiveData

Holds current logged-in state of user.

When initiated it will try to resume last logged-in user from persisted session data. It may go through the following states:

  1. After init: Success(User) or Failure(NotAuthed.NoLoggedInUser)

  2. Auth flow started: Failure(NotAuthed.AuthInProgress)

  3. Auth flow completed: Success(User) or Failure(NotAuthed.LoginFailed)

  4. Auth flow cancelled: Failure(NotAuthed.CancelledByUser)

  5. User logs out: Failure(NotAuthed.NoLoggedInUser)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun hasObservers(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard