stacks-auth

Integrate @stacksjs/auth for authentication, authorization, and token management in Stacks applications.

622|17|Updated Apr 26, 2022
One-click install
npx skills add https://github.com/stacksjs/stacks --skill stacks-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stacks-auth
Source: https://github.com/stacksjs/stacks/tree/main/.claude/skills/stacks-auth
Command: npx skills add https://github.com/stacksjs/stacks --skill stacks-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines and secures authentication, authorization, and session management for Stacks applications, covering passkeys, TOTP/2FA, gates, policies, and token workflows.

Core Features & Use Cases

  • Comprehensive authentication and authorization for Stacks apps using the @stacksjs/auth package
  • RBAC, gates, and middleware to enforce access control across API and UI
  • Support for passkeys, 2FA, email verification, and password resets to secure user accounts
  • Use cases span web APIs, server-side actions, and SPA authentication flows

Quick Start

Configure the @stacksjs/auth package in your project and begin invoking login, logout, and token management from your UI or API.

Frequently Asked Questions about stacks-auth

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

FAQPage Schema
How do I add passkeys and two-factor authentication to my TypeScript application?

You can implement passkeys, 2FA, and email verification in TypeScript apps by integrating the @stacksjs/auth package, which provides built-in token management and configurable security workflows for user accounts.

What is the best way to enforce RBAC and access control gates across an API and SPA?

Enforcing RBAC and access control across API and SPA contexts requires centralized policy controls and middleware, allowing you to define gates that restrict server-side actions and UI routes based on user roles.

How do token lifecycles and rotation work for secure session management?

Secure session management uses configurable token lifecycles and rotation to enforce authentication policies, ensuring tokens expire and refresh safely to prevent unauthorized access across web APIs and SPA flows.

Does Stacks authentication support password reset and email verification workflows?

Yes, Stacks authentication supports password resets and email verification out of the box, applying centralized policy controls to secure user accounts across both API and UI authentication flows.

Can I use this authentication system for both server-side actions and SPA flows?

Yes, this authentication system applies across server-side actions and SPA flows, providing comprehensive authorization and session management that covers API requests and UI interactions using centralized gates and middleware.