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)]
5#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
6#[cfg_attr(feature = "specta", derive(specta::Type))]
7pub struct AuthTokens {
8 /// Token that lives for 15 minutes.
9 pub session: String,
10 /// Token that lives for 1 month; allows for refreshing without re-authenticating.
11 pub refresh: String,
12}