Skip to main content

tuitbot_core/x_api/auth/
refresh.rs

1//! Token refresh response types and refresh logic.
2
3use serde::Deserialize;
4
5/// Response from the OAuth 2.0 token refresh endpoint.
6#[derive(Debug, Deserialize)]
7pub struct TokenRefreshResponse {
8    pub access_token: String,
9    pub refresh_token: String,
10    pub expires_in: i64,
11    pub scope: String,
12}