camilool8/harness-engineering-templates/addon-authjs
Claude Code and agent skill by camilool8/harness-engineering-templates
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Auth.js v5 authentication conventions — encrypted sessions, env-var-only secrets, server vs client session access, edge middleware route protection, and provider credential inference. Use when adding or reviewing a login flow, OAuth, or session handling.
Install
npx vskill@latest install camilool8/harness-engineering-templates/addon-authjsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as camilool8/harness-engineering-templates/addon-authjs.
Addon — Auth.js
Auth.js v5 handles authentication. Sessions are encrypted with AUTH_SECRET. Provider credentials are read from environment variables — never from source code.
Security invariants (non-negotiable):
- Never log
session.user,token, or any object that may contain credentials,
email, or session identifiers. Tokens in logs are a breach.
- All secrets (
AUTH_SECRET,AUTH_GITHUB_SECRET, etc.) must be environment
variables. They must not appear in source files, .env.example with real values, or commit history.
AUTH_SECRETmust be generated withnpx auth secret— do not hand-write it.
Session access:
- In Server Components:
const session = await auth()— returns the session or
null; access is server-side only and safe.
- In Client Components: wrap the app in
<SessionProvider>and calluseSession().
The client session exposes only what you explicitly include in the JWT/session callback — no raw tokens.
Route protection:
- Use Auth.js middleware (
middleware.tsat the project root) to protect routes
at the edge. Do not add manual if (!session) redirect() checks in every page.
- Configure
authorizedcallback inauth.config.tsto declare which paths
require authentication.
Environment variable naming (provider inference): Auth.js automatically infers provider credentials if named AUTH_<PROVIDER>_ID and AUTH_<PROVIDER>_SECRET. This means no manual clientId/clientSecret in the provider array for official providers.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/harness-web/skills/addon-authjs/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/camilool8/harness-engineering-templates/addon-authjs)