integrate-gotrue-auth - Integrate GoTrue authentication with project roles
Integrates a project with a shared GoTrue instance by adding JWT authentication, frontend auth components, Docker configuration, and project-specific roles.
Tags
Updated: 2026-10-07Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Gather project information
- Detect the project tech stack
- Install authentication dependencies
- Configure JWT settings
- Create JWT middleware
- Protect API routes
- Create the GoTrue client
- Add authentication context
- Add login and route protection
- Configure Docker deployment
- Register project roles
Inputs
- Target project codebase
- Project name
- Project slug
- Post-login route
- Frontend style
- GOTRUE_JWT_SECRET
Outputs
- JWT authentication middleware
- Protected API routes
- GoTrue frontend client
- Authentication context
- Login page
- Protected route
- Docker configuration
- Registered project roles
Requirements
- Backend project
- React/Vite or Next.js frontend
- Docker VPS deployment
- infrastructure_default Docker network
- Running shared GoTrue instance
- Available GOTRUE_JWT_SECRET
- AskUserQuestion tool
