security
The project will use session-based authentication.
Install / Use
npx skills add gimzani/SwiftFollowupInstalls into whichever agent you are using.
Skill content
View source on GitHubAuthentication and Security
The project will use session-based authentication.
Technologies
Auth Flow
These are the required flows for a functional application:
Register
- Hash password with argon2
- Create user
- Create email verification token
- Send email
Login
- user fills out form, submits to api
- Find user by email and (hashed) password
- create session in db
- set session cookie
Auth Middleware ( Fastify Hook )
- API is called
- API uses middleware to validate session token (cookie)
- if valid, API Executes
- if invalid, API returns 401
Logout
- Delete session from DB
- Clear cookie
Auth Routes
To future-proof this app, use the following auth routes:
/auth/login
/auth/logout
/auth/me
Security
Email is the identity anchor. Always verify email before full access. Treat email change as sensitive action.
- Hash EVERYTHING sensitive
- passwords → argon2
- session tokens → SHA-256
- reset tokens → SHA-256
- Rate limit auth routes
-
Use:
- @fastify/rate-limit
-
Protect:
- /login
- /register
- /forgot-password
Related Skills
momen-cursurrules-prompt-file
40.6kCursor rules for building custom frontends with Momen.app as headless BaaS with GraphQL API, actionflows, AI agents, and Stripe integration.
nanoclaw
30.5kA lightweight alternative to OpenClaw that runs in containers for security. Connects to WhatsApp, Telegram, Slack, Discord, Gmail and other messaging apps,, has memory, scheduled jobs, and runs directly on Anthropic's Agents SDK
Anthropic-Cybersecurity-Skills
27.9k817 structured cybersecurity skills for AI agents · Mapped to 6 frameworks: MITRE ATT&CK, NIST CSF 2.0, MITRE ATLAS, D3FEND, NIST AI RMF & MITRE F3 (Fight Fraud) · agentskills.io standard · Works with Claude Code, GitHub Copilot, Codex CLI, Cursor, Gemini CLI & 20+ platforms · 29 security domains ·…
beefreeSDK-nocode-content-editor-cursorrules-prompt-file
40.6kCursor rules for embedding Beefree SDK's no-code content editors (for emails, pages, and popups) into a web application.
Security Score
Audited on Invalid Date
