Angular (v21+) standalone library providing interceptors, guards, and session management for backends using awesome-node-auth. v1.8.4, actively maintained. Key differentiators: fully tree-shakable, reactive signals for user state, smart guards (authGuard/guestGuard), automatic CSRF protection, optional UI sync for themes and feature flags, and SSR compatibility. Integrates seamlessly with Angular 21's standalone APIs via provideAuth and provideAuthUi providers.
npm install ng-awesome-node-authNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure ng-awesome-node-auth in an Angular 21 application using provideAuth and provideAuthUi, and protects routes with authGuard and guestGuard.
Upgrade to Angular 21.2.0 or later.
Ensure provideAuth is only provided in the root ApplicationConfig.
Set apiPrefix to match your backend's authentication endpoints, e.g., '/api/auth'.
Use an older version (<1.0.0) if you must stay on Angular 20, but no support is guaranteed.
Add provideHttpClient() in your app.config.ts: import { provideHttpClient } from '@angular/common/http'; then add to providers array.Ensure @angular/core and @angular/common are at version ^21.2.0 and run 'npm install' again.
Run 'npm install ng-awesome-node-auth' and verify your tsconfig.json includes 'node_modules' in 'moduleResolution'.