Skip to content
Back to skills

Account Identity

ASecurity

Identity and account patterns for src/app/account, including AngularFire Auth integration, signal-first auth state, route guards, and security boundaries; use when touching auth, user/session state, or account UI flows.

  • 221 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 4, 2026
securityangularsecurity

Works with

  • cli

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill account-identity --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Account Identity?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Account Identity
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-account-identity/badge)](https://www.skillsdirectory.com/skills/neversight-account-identity)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: account-identity
description: Identity and account patterns for src/app/account, including AngularFire Auth integration, signal-first auth state, route guards, and security boundaries; use when touching auth, user/session state, or account UI flows.
---

# Account / Identity

## Intent
Keep authentication and identity state correct, observable, and isolated from other bounded contexts.

## Boundaries
- Treat identity as a separate context: other modules depend on identity signals/tokens, not on Firebase Auth types.
- Do not leak platform objects (Firebase User, JWT claims) into Domain models.

## Signal-First Auth State
- Represent the current session as signals (user, isAuthenticated, userId, claims).
- Convert Observable streams to signals at the store/facade boundary.
- Ensure cleanup is automatic (use Angular signal interop helpers and lifecycle-aware patterns).

## Authorization
- Prefer explicit permissions signals (e.g., canReadWorkspace, canManageMembers) derived from claims/membership.
- Keep permission rules centralized (one store/service), not duplicated across components.

## Routing
- Use functional guards and `inject()`.
- Guard by signals (not by async subscribe-in-guard side effects).

## Error Handling
- Map provider errors (Firebase/HTTP) to app-level error types before exposing to UI.
- UI should render stable error states; avoid throwing raw platform errors.

## Security Checklist
- Never rely on the client for authorization.
- Treat security rules / server checks as the enforcement mechanism.
- Avoid persisting secrets in source code; use environment configuration.

Files in this skill

  • SKILL.md1.6 KB
  • description_ar.txt363 B
  • description_cn.txt206 B
  • description_de.txt276 B
  • description_en.txt220 B
  • description_es.txt293 B
  • description_fr.txt342 B
  • description_it.txt313 B
  • description_ja.txt306 B
  • description_ko.txt242 B
  • description_ru.txt544 B
  • description_tw.txt218 B
  • stats.json65 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.