@salte-auth/auth0

A Salte Auth provider for authenticating with Auth0!

Usage no npm install needed!

<script type="module">
  import salteAuthAuth0 from 'https://cdn.skypack.dev/@salte-auth/auth0';
</script>

README

A Salte Auth provider for authenticating with Auth0!

DocsDemo

NPM Version NPM Downloads CI Build Coveralls

semantic-release

Install

$ npm install @salte-auth/auth0

Usage

import { SalteAuth } from '@salte-auth/salte-auth';
import { Auth0 } from '@salte-auth/auth0';
import { Redirect } from '@salte-auth/redirect';

/* 
 * Feel free to try out Salte Auth with this configuration!
 * 
 * It should work with the following domains:
 * - glitch.com
 * - localhost:8081
 */
const auth = new SalteAuth({
  providers: [
    new Auth0({
      url: 'https://salte-os.auth0.com',
      clientID: '9JTBXBREtckkFHTxTNBceewrnn7NeDd0'
    })
  ],

  handlers: [
    new Redirect({
      default: true
    })
  ]
});

auth.login('auth0');