Client

@Serializable
data class Client(val id: String? = null, val signIn: SignIn? = null, val signUp: SignUp? = null, val sessions: List<Session> = emptyList(), val lastActiveSessionId: String? = null, val updatedAt: Long? = null)

The Client object keeps track of the authenticated sessions in the current device. The device can be a browser, a native application or any other medium that is usually the requesting part in a request/response architecture.

The Client object also holds information about any sign in or sign up attempts that might be in progress, tracking the sign in or sign up progress.

Constructors

Link copied to clipboard
constructor(id: String? = null, signIn: SignIn? = null, signUp: SignUp? = null, sessions: List<Session> = emptyList(), lastActiveSessionId: String? = null, updatedAt: Long? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val id: String? = null

Unique identifier for this client.

Link copied to clipboard
@SerialName(value = "last_active_session_id")
val lastActiveSessionId: String? = null

The ID of the last active Session on this client.

Link copied to clipboard

A list of sessions that have been created on this client.

Link copied to clipboard
@SerialName(value = "sign_in")
val signIn: SignIn? = null

The current sign in attempt, or null if there is none.

Link copied to clipboard
@SerialName(value = "sign_up")
val signUp: SignUp? = null

The current sign up attempt, or null if there is none.

Link copied to clipboard
@SerialName(value = "updated_at")
val updatedAt: Long? = null

Timestamp of last update for the client.