Authentication
Implement and review authentication safely — argon2id/scrypt password hashing, sessions vs tokens, OAuth 2.0/OIDC with PKCE, device-code flow, MFA and passkeys, refresh-token rotation, reset flows and account-enumeration defence.
What it does
Implement and review authentication safely — argon2id/scrypt password hashing, sessions vs tokens, OAuth 2.0/OIDC with PKCE, device-code flow, MFA and passkeys, refresh-token rotation, reset flows and account-enumeration defence.
- Category
- backendsecurityauth
- Platforms
- backendwebmobile
- Frameworks and tools
- oauth2oidcwebauthnjwt
- Capabilities
- code-generationreviewsecurity
Example tasks
- “Add email/password login with argon2id, secure session cookies and TOTP MFA.”
- “Implement Sign in with Google using OIDC authorization code flow with PKCE for a SPA plus API.”
- “Audit our JWT access/refresh token handling and add refresh-token rotation with reuse detection.”
Works with
Permissions summary
Files
Reads files only
Shell
No shell commands
Network
No network
Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.
Supported environments
| Client | Support | Installed as |
|---|---|---|
| Claude Code | Native | .claude/skills/<id>/SKILL.md |
| OpenAI Codex | Adapter | .codex/skills/<id>/SKILL.md |
| Cursor | Adapter | .cursor/rules/<id>.mdc |
| VS Code (Copilot) | Adapter | .github/instructions/<id>.instructions.md |
| Generic markdown | Adapter | docs/forgekit/skills/<id>.md |
Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.
Included in packs
What is inside
This is a premium component, so its prompt is delivered only through signed downloads to licensed accounts. Here is the outline of its sections (64 lines in total).
- 01Authentication
- 021. Choose the mechanism
- 032. Passwords
- 043. Sessions (cookie-based)
- 054. OAuth 2.0 / OIDC (as the client)
- 065. Device-code flow (RFC 8628)
- 076. Tokens and refresh rotation
- 087. MFA and recovery
- 098. Abuse defence
- 10Common mistakes
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — Authentication
1.0.0
- Initial release.