Skip to main content

Module token_storage

Module token_storage 

Source

Structs§

TokenStorage
OAuth token storage structure

Functions§

delete_all_for_account
Delete all stored credentials for an account
delete_tokens
Delete stored OAuth tokens (from both secure storage and file)
delete_tokens_for_account
Delete OAuth tokens for a specific account
get_access_token
Get just the access token (for convenience)
get_api_key_for_account
Get API key for a specific account
get_bearer_token_for_account
Get bearer token for a specific account
get_tokens
Get stored OAuth tokens (tries secure storage first, then file)
get_tokens_for_account
Get OAuth tokens for a specific account
has_valid_token
Check if we have valid (non-expired) tokens
store_api_key_for_account
Store API key for a specific account
store_bearer_token_for_account
Store bearer token for a specific account
store_tokens
Store OAuth tokens (file-based storage with fallback to secure storage)
store_tokens_for_account
Store OAuth tokens for a specific account