authentication

📁 sailscastshq/boring-stack 📅 1 day ago
1
总安装量
1
周安装量
#43775
全站排名
安装命令
npx skills add https://github.com/sailscastshq/boring-stack --skill authentication

Agent 安装分布

amp 1
opencode 1
kimi-cli 1
codex 1
github-copilot 1
claude-code 1

Skill 文档

Authentication

The Boring JavaScript Stack uses session-based authentication with multiple sign-in methods. The Ascent templates provide production-ready implementations of password auth, magic links, passkeys, two-factor authentication, password reset, and OAuth — all built on Sails.js actions, helpers, and policies.

When to Use

Use this skill when:

  • Implementing signup and login flows (password or magic link)
  • Adding passkey (WebAuthn) support with @simplewebauthn
  • Setting up two-factor authentication (TOTP, email codes, backup codes)
  • Building password reset flows with secure token handling
  • Integrating OAuth providers (Google, GitHub) via sails-hook-wish
  • Configuring authentication policies (is-authenticated, is-guest, has-partially-logged-in)
  • Understanding the req.me / req.session.userId pattern and return URL handling
  • Working with the User model’s auth-related attributes and lifecycle callbacks

Rules

Read individual rule files for detailed explanations and code examples: