atrium-oauth 0.1.6

Core library for implementing AT Protocol OAuth clients
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::response::OAuthTokenType;
use atrium_api::types::string::{Datetime, Did};
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
pub struct TokenSet {
    pub iss: String,
    pub sub: Did,
    pub aud: String,
    pub scope: Option<String>,

    pub refresh_token: Option<String>,
    pub access_token: String,
    pub token_type: OAuthTokenType,

    pub expires_at: Option<Datetime>,
}