@salte-auth/okta
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

A Salte Auth provider for authenticating with Okta!

DocsDemo

NPM Version NPM Downloads CI Build Coveralls

semantic-release

Install

$ npm install @salte-auth/okta

Usage

import { SalteAuth } from '@salte-auth/salte-auth';
import { Okta } from '@salte-auth/okta';
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 Okta({
      url: 'https://dev-960892.oktapreview.com',
      clientID: '0oajg1bj8hxM1z7pa0h7'
    })
  ],

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

auth.login('okta');

Package Sidebar

Install

npm i @salte-auth/okta

Weekly Downloads

108

Version

3.1.0

License

MIT

Unpacked Size

10.3 kB

Total Files

16

Last publish

Collaborators

  • cecilia-sanare
  • davewoodward
  • salte-bot