All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.stytch.java.common.StytchSessionClaim.kt Maven / Gradle / Ivy

There is a newer version: 6.7.0
Show newest version
package com.stytch.java.common

import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import com.stytch.java.consumer.models.attribute.Attributes
import com.stytch.java.consumer.models.sessions.AuthenticationFactor

@JsonClass(generateAdapter = true)
internal data class StytchSessionClaim(
    val id: String,
    @Json(name = "started_at")
    val startedAt: String,
    @Json(name = "last_accessed_at")
    val lastAccessedAt: String,
    @Json(name = "expires_at")
    val expiresAt: String,
    val attributes: Attributes?,
    @Json(name = "authentication_factors")
    val authenticationFactors: List,
    @Json(name = "roles")
    val roles: List? = emptyList(),
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy