{"library":"ng-awesome-node-auth","title":"ng-awesome-node-auth","description":"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.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install ng-awesome-node-auth"],"cli":null},"imports":["import { provideAuth } from 'ng-awesome-node-auth'","import { authGuard } from 'ng-awesome-node-auth'","import { UiConfigService } from 'ng-awesome-node-auth'","import { provideAuthUi } from 'ng-awesome-node-auth'","import { user } from 'ng-awesome-node-auth'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { ApplicationConfig } from '@angular/core';\nimport { provideRouter } from '@angular/router';\nimport { provideAuth, provideAuthUi, authGuard, guestGuard } from 'ng-awesome-node-auth';\nimport { LoginComponent, DashboardComponent } from './components';\n\nexport const appConfig: ApplicationConfig = {\n  providers: [\n    provideRouter([\n      { path: 'login', component: LoginComponent, canActivate: [guestGuard] },\n      { path: 'dashboard', component: DashboardComponent, canActivate: [authGuard] }\n    ]),\n    provideAuth({ apiPrefix: '/api/auth' }),\n    provideAuthUi(),\n  ]\n};","lang":"typescript","description":"Shows how to configure ng-awesome-node-auth in an Angular 21 application using provideAuth and provideAuthUi, and protects routes with authGuard and guestGuard.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}