Dev Auth Bypass

Authenticate a browser against a local ChatJS app without OAuth. Use for development login, local auth bypass, authenticated browser or Playwright testing, and the /api/dev-login route.

franciscomoretti 49bdff2 562 B Updated

File contents

Dev Auth Bypass

  • Given the app URL, navigate the browser to <app-url>/api/dev-login.
  • Use browser navigation rather than curl so the browser receives the session cookie.
  • Expect the route to create the local dev user and session, then redirect to the app.
  • Use this route only in development. It returns 404 otherwise.

franciscomoretti/chat-js/tree/main/.agents/skills/dev-auth-bypass commit 49bdff2c52

Frequently asked questions

npx skillmds@latest add franciscomoretti/dev-auth-bypass