arch-auth

Implement OAuth, JWT, and API key authentication for web applications.

Updated Feb 1, 2026
One-click install
npx skills add https://github.com/sabyunrepo/IaaS --skill arch-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: arch-auth
Source: https://github.com/sabyunrepo/IaaS/tree/main/.claude/skills/arch-auth
Command: npx skills add https://github.com/sabyunrepo/IaaS --skill arch-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and implementation details for building a robust, multi-layered authentication system using OAuth, JWT, and API Keys.

Core Features & Use Cases

  • OAuth Flow Implementation: Guides through setting up Google and GitHub OAuth for user login.
  • JWT Issuance & Validation: Details the creation and verification of JSON Web Tokens for secure API access.
  • API Key Management: Outlines the generation, storage, and usage of API keys with rate limiting.
  • Use Case: Securely authenticate users for a web application, ensuring only authorized access to sensitive data and functionalities through a combination of modern authentication protocols.

Quick Start

Implement the OAuth flow for Google and GitHub authentication using the provided backend and frontend guidance.

Frequently Asked Questions about arch-auth

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

FAQPage Schema
How do I implement OAuth and JWT authentication for a web application?

Implement OAuth and JWT authentication by setting up Google or GitHub OAuth flows for login, then issuing JWTs with HS256 and 24h expiry for secure API access. Backend middleware handles token validation.

What is the best way to securely store JWTs on the frontend?

Securely store JWTs on the frontend using URL fragments and memory storage. This approach avoids persistent browser storage vulnerabilities while maintaining access to tokens for API requests.

How do I generate and manage API keys with rate limiting?

Generate API keys using SHA-256 hashing for secure storage. Apply rate limiting middleware to control API usage, ensuring only authorized requests access sensitive data and functionalities.

Can I use both OAuth and API keys in the same authentication system?

Yes, you can combine OAuth and API keys in a dual-authentication system. OAuth handles user login via Google or GitHub, while API keys with SHA-256 hashing secure programmatic API access.

How does JWT validation middleware work with HS256 tokens?

JWT validation middleware verifies HS256-signed tokens by checking the signature and expiration. It intercepts API requests, validates the 24h expiry token, and authorizes access to protected routes.

When should I use API keys instead of OAuth for authentication?

Use API keys for programmatic or machine-to-machine API access with rate limiting. Use OAuth for interactive user login flows through providers like Google and GitHub to authenticate human users.