This skill provides Claude with the specialized knowledge to implement and manage authentication in Encore.ts applications. It enables the creation of custom auth handlers for JWTs, API keys, and cookies, while teaching Claude how to protect endpoints using declarative configurations. Developers can leverage this skill to handle complex scenarios like service-to-service auth propagation, type-safe identity retrieval via getAuthData, and comprehensive testing of secure API routes.
主な機能
01Declarative endpoint protection using the auth: true attribute
0225 GitHub stars
03Custom authHandler implementation for JWT, API keys, and session cookies
04Mocking and testing strategies for authenticated API endpoints
05Type-safe access to caller identity with getAuthData()
06Automated authentication data propagation across microservices
ユースケース
01Building a secure user profile system that requires valid Bearer tokens
02Creating service-to-service communication patterns that maintain user context
03Implementing an API Gateway to centralize security logic for a microservices architecture