open-index/open-npm huggingface dataset:
npm package: @identity-base/angular-client
Description: Angular authentication client for Identity.Base (built on @identity-base/client-core).
Author: Identity Base
Latest version: 0.8.8

# @identity-base/angular-client

Angular DI wrapper for Identity Base, built on `@identity-base/client-core`.

## Install

```bash
npm install @identity-base/angular-client
```

## Setup

```ts
import { provideIdentityClient } from '@identity-base/angular-client'

export const appConfig = {
  providers: [
    ...provideIdentityClient({
      apiBase: 'https://identity.example.com',
      clientId: 'spa-client',
      redirectUri: 'https://app.example.com/auth/callback',
      scope: 'openid profile email identity.api',
      tokenStorage: 'sessionStorage',
      autoRefresh: true,
      loginPath: '/login',
    }),
  ],
}
```

## Route Guard

```ts
import { IdentityRequireAuthGuard } from '@identity-base/angular-client'

export const routes: Routes = [
  {
    path: 'account',
    canActivate: [IdentityRequireAuthGuard],
    loadComponent: () => import('./account.component').then(m => m.AccountComponent),
  },
]
```
npm package: @identity-base/angular-organizations
Description: Angular organizations client for Identity.Base (built on @identity-base/angular-client).
Author: Identity Base
Latest version: 0.8.8

# @identity-base/angular-organizations

Angular organizations client for Identity Base. Depends on `@identity-base/angular-client` (which depends on `@identity-base/client-core`).

## Install

```bash
npm install @identity-base/angular-organizations
```

## Setup

```ts
import { provideIdentityOrganizations } from '@identity-base/angular-organizations'

export const appConfig = {
  providers: [
    ...provideIdentityOrganizations({
      apiBase: 'https://identity.example.com',
    }),
  ],
}
```
npm package: @identity-base/client-core
Description: Framework-agnostic client core for Identity.Base
Author: Identity Base
Latest version: 0.8.8

# @identity-base/client-core

Framework-agnostic TypeScript client core for Identity Base.

## Install

```bash
npm install @identity-base/client-core
```

## Usage

```ts
import { IdentityAuthManager } from '@identity-base/client-core'

const auth = new IdentityAuthManager({
  apiBase: 'https://identity.example.com',
  clientId: 'spa-client',
  redirectUri: 'https://app.example.com/auth/callback',
  scope: 'openid profile email identity.api',
  tokenStorage: 'sessionStorage',
  autoRefresh: true,
})
```