atrium_oauth/types/token.rs
1use super::response::OAuthTokenType;
2use atrium_api::types::string::{Datetime, Did};
3use serde::{Deserialize, Serialize};
4
5#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
6pub struct TokenSet {
7 pub iss: String,
8 pub sub: Did,
9 pub aud: String,
10 pub scope: Option<String>,
11
12 pub refresh_token: Option<String>,
13 pub access_token: String,
14 pub token_type: OAuthTokenType,
15
16 pub expires_at: Option<Datetime>,
17}