mangadex_api_schema_rust/v5/auth_tokens.rs
1use serde::Deserialize;
2
3/// JWT that must be included with requests that require Bearer authentication.
4#[derive(Debug, Deserialize, Clone, PartialEq, Default)]
5#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
6#[cfg_attr(feature = "specta", derive(specta::Type))]
7#[non_exhaustive]
8pub struct AuthTokens {
9 /// Token that lives for 15 minutes.
10 pub session: String,
11 /// Token that lives for 1 month; allows for refreshing without re-authenticating.
12 pub refresh: String,
13}