// Code generated by oagen. DO NOT EDIT.
#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SSOTokenResponse {
/// The type of token issued.
pub token_type: String,
/// An access token that can be exchanged for a user profile. Access tokens are short-lived — see the `expires_in` field for the exact lifetime.
pub access_token: crate::SecretString,
/// The lifetime of the access token in seconds.
pub expires_in: i64,
/// The user profile returned by the identity provider.
pub profile: Profile,
/// OAuth tokens issued by the identity provider, if available.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub oauth_tokens: Option<SSOTokenResponseOAuthToken>,
}