mx-core-local-auth
Installation
SKILL.md
Local authentication during verification
Treat authentication as an on-demand branch of the verification being performed.
- Attempt the exact UI or API operation that needs verification.
- If it succeeds anonymously, continue without creating authentication state.
- If it fails on authentication, create one short-lived owner session directly
in the local PostgreSQL
sessionstable. - Reuse that session for the original operation, collect the required evidence, and delete the session immediately afterward.
Create the temporary session
Use the repository's configured local PG_URL; do not assume a container name or
hard-code database credentials. Generate a unique session ID and a high-entropy
token without a . character. Insert a session that expires in at most 15 minutes: