Skip to main content

ApolloTokens

Type Alias ApolloTokens 

Source
pub type ApolloTokens = (String, Option<String>, i64);
Expand description

Tokens as the rest of apollo expects them: (access, refresh, expires_at) with expires_at in milliseconds.

rs_ai_oauth stores expires_at in seconds; apollo’s OAuthTokenCache compares against chrono::Utc::now().timestamp_millis(). Converting here keeps the unit mismatch in one place instead of every call site.