What problem does it solve?
When verifying UI or API behavior in a local mx-core development environment, protected routes return login gates, redirects, 401 errors, or AUTH_NOT_LOGGED_IN responses that block testing. This Skill creates a temporary owner session directly in the local database so verification can proceed without manual login flows.
Core Features & Use Cases
- On-demand session creation: Inserts a short-lived (max 15 minute) owner session into the local PostgreSQL sessions table using the configured PG_URL, without modifying readers, accounts, passwords, or API keys.
- Dual-channel reuse: Supports API verification via an Authorization Bearer token and browser UI verification via an HMAC-SHA256 signed better-auth session cookie.
- Guaranteed cleanup: Deletes the temporary session by both ID and token in a finally-style cleanup, even when verification fails.
- Use Case: While testing a protected admin endpoint locally, you hit a 401 response. Use this Skill to mint a temporary owner session, retry the exact operation with the Bearer token, collect evidence, and remove the session afterward.
Quick Start
Create a temporary local owner session so I can verify this protected API endpoint that returned a 401, then clean it up afterward.