Skip to content

AuthChangeEvent

//fluxbase-kotlin/io.github.nimbleflux.fluxbase.auth/AuthChangeEvent

[jvm]
enum class AuthChangeEvent : Enum<AuthChangeEvent>

Auth state change events. Port of AuthChangeEvent from sdk/src/types.ts:2374.

Emitted via client.auth.authStateChanges (a Kotlin Flow) whenever the session changes. The TS SDK uses onAuthStateChange(callback); in Kotlin we expose the same events as a Flow for coroutine-native consumption.

SIGNED_IN [jvm]
SIGNED_IN
SIGNED_OUT [jvm]
SIGNED_OUT
TOKEN_REFRESHED [jvm]
TOKEN_REFRESHED
USER_UPDATED [jvm]
USER_UPDATED
PASSWORD_RECOVERY [jvm]
PASSWORD_RECOVERY
MFA_CHALLENGE_VERIFIED [jvm]
MFA_CHALLENGE_VERIFIED
Name Summary
entries [jvm]
val entries: EnumEntries<AuthChangeEvent>
Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they’re declared.
Name Summary
valueOf [jvm]
fun valueOf(value: String): AuthChangeEvent
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values [jvm]
fun values(): Array<AuthChangeEvent>
Returns an array containing the constants of this enum type, in the order they’re declared.
Name Summary
name [jvm]
val name: String
ordinal [jvm]
val ordinal: Int