Expand description
Redis-backed auth token store.
Maps Discord user ids → FicHub JWT tokens. Tokens live in the same Redis
instance FicHub uses (archivist:token:<discord_id>), so the bot can be
restarted without losing linked accounts. TTL is 30 days by default.
Structs§
- Pending
Link - Pending
/linkcode: Discord id + creation time. - Pending
Link Store - Store for pending one-time link codes (web-side confirmation flow).
- Stored
Token - A stored token + the user info it maps to.
- Token
Store - Redis-backed token store.
Constants§
- TOKEN_
TTL_ SECS - Default TTL for stored tokens (30 days).