animedex.auth.store
TokenStore Protocol.
The Protocol enumerates the only operations a backend module needs
on a credential store: store, look up, delete, and enumerate. By
keeping the surface this small we make every backend trivial to
test (with InMemoryTokenStore)
and trivial to retarget (e.g. an encrypted-file store for headless
CI, a remote vault for hosted deployments).
TokenStore
- class animedex.auth.store.TokenStore(*args, **kwargs)[source]
Bases:
ProtocolThe Protocol every token-store backend implements.
All methods are synchronous; the substrate is sync-first per
plans/05 §5.- set(backend: str, token: str) None[source]
Store the credential for
backend, overwriting any prior value.