client/auth/auth_strategy library

Classes

ApiKeyStrategy
Attaches a static API key to every request as an x-api-key header. The key is a compile-time constant — never stored dynamically.
AuthStrategy
Base auth strategy. Implement to add custom auth behaviour. The ApiClient calls apply before every non-noAuth request.
BearerStrategy
Reads the JWT access token from memory (fast) with a Hive fallback (persistent). Attaches it as Authorization: Bearer <token>.
CookieStrategy
Relies on Dio's CookieJar to attach cookies automatically. No manual header injection needed — the CookieJar intercepts every request.