AuthEvent

sealed interface AuthEvent

Represents authentication events emitted by the Auth class.

Subscribe to Auth.events to receive these events and react to authentication state changes.

Inheritors

Types

Link copied to clipboard
data class Error(val message: String, val throwable: Throwable? = null) : AuthEvent

Emitted when an authentication error occurs.

Link copied to clipboard
data class SessionChanged(val session: Session?) : AuthEvent

Emitted when the current session changes.

Link copied to clipboard
data class SignedIn(val session: Session, val user: User) : AuthEvent

Emitted when a user successfully signs in.

Link copied to clipboard
data object SignedOut : AuthEvent

Emitted when a user signs out.

Link copied to clipboard
data class SignInCompleted(val signIn: SignIn) : AuthEvent

Emitted when a sign-in flow is completed.

Link copied to clipboard
data class SignInStarted(val signIn: SignIn) : AuthEvent

Emitted when a sign-in flow is started.

Link copied to clipboard
data class SignUpCompleted(val signUp: SignUp) : AuthEvent

Emitted when a sign-up flow is completed.

Link copied to clipboard
data class SignUpStarted(val signUp: SignUp) : AuthEvent

Emitted when a sign-up flow is started.