auth-security

Implement authentication and security hardening patterns for Node.js/TypeScript web apps.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/AndreaCadonna/sbobuz-web-game-app --skill auth-security-andreacadonna
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auth-security
Source: https://github.com/AndreaCadonna/sbobuz-web-game-app/tree/main/skills/auth-security
Command: npx skills add https://github.com/AndreaCadonna/sbobuz-web-game-app --skill auth-security-andreacadonna

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Authentication and security design for Node.js/TypeScript web apps—reducing risk by applying verified patterns for auth flows, token management, session handling, input validation, secrets, and vulnerability prevention.

Core Features & Use Cases

  • JWT lifecycle management
  • Password hashing and verification
  • Authorization checks and ownership enforcement
  • CORS, rate limiting, and input validation with Zod
  • Secrets management and safe configuration
  • Defense against common web vulnerabilities (XSS, CSRF, injection)

Quick Start

Use the auth-security patterns to implement login/register JWT flows and password hashing in your Node.js/TypeScript API.

Frequently Asked Questions about auth-security

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

FAQPage Schema
How do I implement JWT authentication in a Node.js and TypeScript API?

You implement JWT authentication in Node.js and TypeScript by applying concrete patterns for login flows, token signing and verification, and middleware route guards. This provides complete JWT lifecycle management from issuance to expiration.

What is the best way to hash and verify passwords in a Node.js web app?

The best way to hash and verify passwords in a Node.js web app is to use established secure hashing patterns. This ensures passwords are cryptographically salted and stored safely, providing robust verification during the login process.

How do I add CORS, rate limiting, and input validation to my TypeScript API?

You add CORS, rate limiting, and input validation to your TypeScript API by configuring security middleware and using Zod schemas. This provides defense against malicious requests and common web vulnerabilities like injection attacks.

How does authorization and ownership enforcement work in Node.js middleware?

Authorization and ownership enforcement in Node.js middleware works by applying route guards that check user permissions before accessing resources. This provides strict access control, ensuring users can only modify resources they own.

Can I use these security patterns to protect against XSS and CSRF in my Node.js app?

Yes, you can use these security patterns to protect against XSS and CSRF in your Node.js app. The patterns provide defense mechanisms against common web vulnerabilities, ensuring your API service is hardened against malicious attacks.

How do I manage secrets and safe configuration for a TypeScript API service?

You manage secrets and safe configuration for a TypeScript API service by applying secure secret management patterns. This provides isolated configuration handling, ensuring sensitive data like JWT signing keys are never exposed in your codebase.