add-auth

Implement Cognito authentication to secure API routes and manage user accounts.

1|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/schuettc/website-deployment-plugin --skill add-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-auth
Source: https://github.com/schuettc/website-deployment-plugin/tree/main/plugin/skills/add-auth
Command: npx skills add https://github.com/schuettc/website-deployment-plugin --skill add-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Adds Cognito authentication and route protection to secure API endpoints and manage user accounts.

Core Features & Use Cases

  • Cognito User Pool setup with email-based sign-in and email verification
  • API Gateway Cognito Authorizer integration to protect sensitive routes
  • Frontend integration scaffolding (auth client, hooks, context) for seamless login flows
  • End-to-end flow for sign-up, sign-in, confirmation, and password recovery

Quick Start

Run the add-auth skill to scaffold Cognito authentication and protect your API routes in your project.

Frequently Asked Questions about add-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Cognito authentication to protect API routes in a serverless application?

You can add Cognito authentication by setting up a Cognito User Pool, configuring an API Gateway authorizer, and scaffolding frontend integration to propagate tokens. This protects API routes and manages user sign-in flows.

Can I use Cognito to secure API Gateway endpoints with email-based sign-in?

Yes, Cognito can secure API Gateway endpoints using email-based sign-in. It integrates a Cognito User Pool with an API Gateway authorizer to protect sensitive routes while supporting email verification and configurable password policies.

What is needed to integrate frontend auth hooks with AWS Cognito?

Integrating frontend auth hooks with AWS Cognito requires scaffolding an auth client, context, and hooks for login flows. This setup manages end-to-end sign-up, sign-in, confirmation, and password recovery directly in the frontend.

Does this Cognito auth setup support configurable password policies and email verification?

Yes, the Cognito auth setup supports configurable password policies and email verification. It satisfies production-ready workflow requirements by clearly defining phases for planning, executing, and verifying the infrastructure and frontend integration.

What is the best way to scaffold an end-to-end authentication flow using Cognito and TypeScript?

The best way to scaffold an end-to-end Cognito and TypeScript authentication flow is to implement infrastructure setup, frontend integration, and API client updates together. This approach handles sign-up, sign-in, confirmation, and token propagation securely.