Skip to content
Agentmart
Submit a tool

ck:auth

Auth patterns: JWT, OAuth, session, RBAC

Skill by forgekit

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/duy-nguyen-2006-ck-auth

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Auth patterns: JWT, OAuth, session, RBAC

Use cases: security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ck-auth

What's inside

Skill name
ck:auth
Description
Auth patterns: JWT, OAuth, session, RBAC
License
MIT
Metadata
author: forgekit · version: 1.0.0
Instructions
60 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed
  • name: "ck:auth" does not match folder "auth"

Files (2)

  • SKILL.md
  • auth-checklist.md · references/

SKILL.md (first lines)

# Auth

Authentication & authorization patterns cho web apps. Không bundle SDK — chỉ hướng dẫn pattern + checklist.

## Khi nào load

- User yêu cầu login/signup/session/OAuth
- Backend cần auth middleware
- Cần RBAC hoặc permission system
- Cần review auth flow bảo mật

## Không dùng khi

- Chỉ cần UI form (→ frontend-development)
- Chỉ cần DB schema cho user table (→ databases)
- Cần deploy auth service (→ deploy)

## Core Patterns

### JWT Flow
1. User gửi credentials → server validate
2. Server tạo JWT (access + refresh token)
3. Access token: short-lived (15 min), trong header
4. Refresh token: long-lived (7 days), httpOnly cookie
5. Middleware verify JWT trên mỗi request

### Session-based
1. User gửi credentials → server validate
2. Server tạo session, lưu trong DB/Redis
3. Set session ID trong httpOnly cookie
4. Middleware check session trên mỗi request

### OAuth 2.0
1. Redirect → provider (Google/GitHub/Facebook)
2. Callback → exchange code for token
3. Create/link user account
4. Issue session/JWT

## OWASP-Light Checklist

- [ ] Password: bcrypt/argon2 hash, min 8 chars
- [ ] Rate limit: login endpoint (5 attempts/min)
- [ ] CSRF token cho session-based auth
- [ ] httpOnly + Secure + SameSite cookie flags
- [ ] JWT secret từ env var, không hardcode
- [ ] Refresh token rotation
- [ ] Logout: invalidate session + clear cookie
- [ ] Không expose internal user IDs

## Integration

- Hợp tác với `security-scan` cho audit
- Hợp tác với `backend-development` cho API endpoint
- Hợp tác với `databases` cho user schema

## References

See `references/auth-checklist.md` for detailed implementation patterns (loaded on demand only).

From Duy-Nguyen-2006/ForgeKit, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
May 11, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.0.0
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from forgekit

Cite this page

ck:auth skill. Agent Mart. https://agentmart.dev/skills/duy-nguyen-2006-ck-auth (last updated 2026-10-24)