7.0.7 • Published 1 year ago

@sitespirit/ngx-auth0 v7.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Intro

This project is an Angular X alternative to the Auth0-lock. Aim is to keep this light weight by using existing popular packages such as Material2 components for the UI and the official FormsModule for validation.

Installation

Run npm install ngx-auth0 --save

Add Auth0Module to your project:

import { Auth0Module } from 'ngx-auth0';

Auth0Module.forRoot({ WebAuthConfig: { domain: 'xxxx.xx.auth0.com', clientID: 'xxxxxxxxxxxxxxxxx', scope: 'openid app_metadata' }, connection: 'Username-Password-Authentication' }

Add Auth0Service to your component or service:

import { Auth0Service } from 'ngx-auth0';

Methods

login()

Requires object containing username, password and connection. Returns observable.

loginWithCredentials()

Requires object containing username, password and connection. Returns observable.

loginByDialog()

Shows a login modal similar to the Auth0-lock modal, but with Material UI style. Returns observable.

logout()

Logs the user out and redirects the user back to your application.

15.0.2

1 year ago

15.0.3

1 year ago

15.0.1

1 year ago

7.0.7

1 year ago

7.0.6

1 year ago

7.0.5

1 year ago

15.0.0

2 years ago

7.0.4

2 years ago

7.0.3

2 years ago

7.0.2

2 years ago

7.0.1

2 years ago

12.0.3

2 years ago

12.0.4

2 years ago

12.0.5

2 years ago

12.0.0

2 years ago

12.0.1

2 years ago

12.0.2

2 years ago

10.0.0

3 years ago

10.0.1

3 years ago

10.0.2

3 years ago

10.0.3

3 years ago

10.0.4

3 years ago

0.0.10

3 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago