0.0.35 • Published 5 years ago

ngx-auth0 v0.0.35

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years 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.

0.0.35

5 years ago

0.0.34

5 years ago

0.0.33

5 years ago

0.0.32

5 years ago

0.0.31

5 years ago

0.0.30

6 years ago

0.0.29

6 years ago

0.0.28

6 years ago

0.0.27

6 years ago

0.0.26

6 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago