Skip to main content

Module store

Module store 

Source
Expand description

Token persistence — pluggable backends for the service-token cache.

Use TokenStore as the trait, TokenStoreFn for closure-shaped impls (cookies, KV blobs, Redis), and InMemoryTokenStore / NoStore for ready-made implementations.

A TokenStore plugs into a concrete strategy via that strategy’s builder (e.g. AccessKeyStrategyBuilder::with_token_store) — it does not replace the strategy. For full token acquisition (custom fetcher, FFI-hosted strategy), see crate::auth.

All items in this module are also re-exported at the crate root.

Re-exports§

pub use crate::InMemoryTokenStore;
pub use crate::NoStore;
pub use crate::Token;
pub use crate::TokenStore;
pub use crate::TokenStoreFn;