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

com.workos.sso.models.ProfileAndToken.kt Maven / Gradle / Ivy

Go to download

The WorkOS Kotlin library provides convenient access to the WorkOS API from applications written in JVM compatible languages.

The newest version!
package com.workos.sso.models

import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonProperty

/**
 * Represents a [Profile] and an access token that can be used to
 * manage sessions. This class is not meant to be instantiated directly.
 *
 * @param profile [Profile]
 * @param token An access token that can be used to manage sessions like one would a normal OAuth access token. Access tokens are one-time use and expire 10 minutes after they’re created. Session duration is up to the Developer.
 */
data class ProfileAndToken
@JsonCreator constructor(
  @JvmField
  val profile: Profile,

  @JvmField
  @JsonProperty("access_token")
  val token: String
)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy