Configure `@ahoo-wang/fetcher-cosec` authentication for Fetcher: JWT storage and refresh, device and space IDs, resource attribution, and 401/403 interceptors. Use for CoSec, bearer-token lifecycle, tenant/owner attribution, or auth recovery.
Scanned 9/2/2026
Install to Claude Code
npx -y skills add Ahoo-Wang/skills --skill fetcher-cosec-auth --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Fetcher Cosec Auth?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/ahoo-wang-fetcher-cosec-auth-skills)More formats (shields.io, HTML) on the badges page.
---
name: fetcher-cosec-auth
description: >
Configure `@ahoo-wang/fetcher-cosec` authentication for Fetcher: JWT storage and refresh, device and space IDs, resource attribution, and 401/403 interceptors. Use for CoSec, bearer-token lifecycle, tenant/owner attribution, or auth recovery.
---
# fetcher-cosec-auth
## Workflow
1. Prefer `CoSecConfigurer` for app-level setup and use manual interceptors only for focused customization.
2. Decide token storage, device storage, token refresher, and space provider before attaching interceptors.
3. Register auth request/response interceptors only when refresh behavior is available.
4. Keep 401 retry and 403 handling separate so auth recovery does not hide authorization failures.
5. Load `references/api.md` for JWT classes, storage options, refresher contracts, headers, interceptors, and complete setup examples.
## Key Practices
- Treat tenant and owner attribution as request metadata, not hard-coded URL fragments.
- Use cross-tab token storage behavior intentionally for multi-window apps.
- Keep redirect/UI side effects in callbacks rather than inside low-level token classes.
## References
- `references/api.md`: Detailed package API, examples, and edge-case guidance. Load it only when the task needs CoSecConfigurer options, JWT token classes, TokenStorage, DeviceIdStorage, JwtTokenManager, TokenRefresher, CoSec headers, interceptors, space providers, and complete examples.
## Related Skills
- $fetcher-integration: Use for core Fetcher interceptor mechanics.
- $fetcher-storage: Use for storage primitives behind token and device persistence.
- $fetcher-react-hooks: Use for React security context and route guards.
Is this your skill, or is something wrong with this listing? . Author removals are honored within 72 hours.
No comments yet. Be the first to comment!