AccessTokenDTO

data class AccessTokenDTO(val userId: NonQualifiedUserId, val value: String, val expiresIn: Int, val tokenType: String)

Represents an access token received from an authentication server.

Constructors

Link copied to clipboard
constructor(userId: NonQualifiedUserId, value: String, expiresIn: Int, tokenType: String)

Properties

Link copied to clipboard
val expiresIn: Int

The duration in seconds until the token expires.

Link copied to clipboard
val tokenType: String

The type of the token. e.g. "Bearer"

Link copied to clipboard

The ID of the user associated with the access token.

Link copied to clipboard
val value: String

The access token value.

Functions

Link copied to clipboard
internal fun AccessTokenDTO.toSessionDto(refreshToken: String, qualifiedID: QualifiedID, cookieLabel: String?): SessionDTO