Skip to content

ngx-addons/omni-auth

Repository files navigation

Logo

@ngx-addons

omni-auth

Angular authentication library providing core functionality for authentication flows, guards, and error handling.
Demo · Documentation · Report Bug · Request Feature

License MIT Build & Tests Downloads

demo.mov

Quick Start

  1. Install the package:
pnpm install @ngx-addons/omni-auth-core @ngx-addons/omni-auth-ui-material @ngx-addons/omni-auth-cognito
  1. Configure the package:
import { configureAuth } from "@ngx-addons/omni-auth-core";

//...
prociders: [
  configureAuthCognitoConnector({
    cognito: {
      userPoolId: environment.cognito.userPoolId,
      userPoolClientId: environment.cognito.userPoolClientId,
    },
  }),
  configureAuth({
    authService: AuthAwsCognitoService,
  })
]
//...
  1. Use UI:
<omni-auth-ui-mat></omni-auth-ui-mat>

Documentation

Documentation is available here.

Key features

  • Zoneless: Designed to work without Angular's NgZone for performance optimization
  • Configurable: Flexible configuration system with default patterns
  • Routing Services: Authentication-aware routing utilities
  • Authentication Guards: Route protection with built-in auth guards
  • Error Handling: Comprehensive error collection and messaging system
  • Type Safety: Full TypeScript support with well-defined interfaces

List of packages

Package Description NPM Link Downloads
@ngx-addons/omni-auth-core Core authentication library NPM Version NPM Downloads
@ngx-addons/omni-auth-ui-material Material Design UI components for authentication NPM Version NPM Downloads
@ngx-addons/omni-auth-cognito AWS Cognito connector for authentication NPM Version NPM Downloads

License

See the LICENSE file for details.

About

This repository contains authentication library for angular projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published