AuthEvent

sealed interface AuthEvent(source)

This interface represents the events that can be emitted by Auth.

In comparison to io.github.jan.supabase.auth.status.SessionStatus, these events can happen independently of the session status.

Inheritors

Types

Link copied to clipboard
data class OtpError(val error: String, val errorDescription: String) : AuthEvent

This event means that there was an error while trying to authenticate the user, e.g. from external authentication providers like OAuth. You can use errorCode to further handle the error.

Link copied to clipboard

This event means that Auth had an error while refreshing the session, but will try to refresh it again.