Agent skill · software engineering · aiskillstore
delon-auth-authentication-authorization
Implement authentication and authorization using @delon/auth. Use this skill when adding login/logout flows, JWT token management, role-based access control (RBAC), route guards, HTTP interceptors, and session management. Integrates with Firebase Auth and custom permission systems. Ensures secure token storage, automatic token refresh, and consistent authorization checks across components and services.
Why this skill is useful
Provides specific implementation patterns for authentication and authorization using @delon/auth, which the AI wouldn't reliably generate on its own.
What it needs
Requires @angular/fire, @delon/auth installed locally. Requires firebase account access. About 6k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
@delon/auth Authentication & Authorization Skill This skill helps implement authentication and authorization using @delon/auth library. Core Principles Token Management JWT Storage: Secure token storage using DASERVICETOKEN Auto Refresh: Automatic token renewal before expiration Interceptors: Automatic token injection in HTTP requests Logout: Clean token removal and session cleanup Authorization RBAC: Role-based access control Permissions: Fine-grained permission checking Guards: Route protection with role/permission checks ACL Integration: Works with @delon/acl for UI-level controls Configuration App Config Token Model Authentication Service Auth Guard Role Guard Permission Guard Login Component HTTP Interceptor (Auto Token Injection) @delon/auth automatically provides an interceptor when configured. No manual implementation needed! Component-Level Permission Check Integration with @delon/acl Routes Configuration Checklist When implementing authentication: [ ] Configure @delon/auth in app.config.ts [ ] Create AuthService with token management [ ] Implement login/logout methods [ ] Set up token refresh mechanism [ ] Create auth guard for protected routes [ ] Create role/permission guards as needed [ ] Integrate with Firebase Auth [ ] Sync permissions with @delon/acl [ ] Handle token expiration [ ] Test authentication flow [ ] Test authorization checks [ ] Handle error states (invalid credentials, network errors) References @delon/auth Documentation @delon/acl Documentation Firebase Auth JWT Best Practices
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/delon-auth-authentication-authorization