@salte-auth/okta
v3.1.0
Published
A Salte Auth provider for authenticating with Okta!
Downloads
611
Readme
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');