auth_setup
Set up complete Redis session authentication for login, registration, protected routes, and logout. Uses bcrypt password verification and opaque tokens with bounded TTL; no JWT secrets or .env changes required.
Instructions
Atomically add Redis session wiring to the complete authentication surface: token issuers (login/registration), token validators (me/session and every protected resource), and logout. This tool never reads or writes .env. Generated auth must use bcrypt password verification plus a cryptographically random opaque token stored as a prefix-safe ctx.REDIS_PREFIX key with a bounded TTL; protected endpoints derive identity from Redis and logout deletes the record. JWT and application signing secrets are forbidden.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_endpoints | Yes | All endpoints that issue an authenticated session, such as v1/login and v1/register | |
| logout_endpoints | Yes | All endpoints that revoke an authenticated session, normally v1/logout | |
| protected_endpoints | Yes | The me/session endpoint and every endpoint that requires an authenticated identity |