@salte-auth/facebook
v3.1.0
Published
A Salte Auth provider for authenticating with Facebook!
Downloads
3
Readme
Install
$ npm install @salte-auth/facebook
Usage
import { SalteAuth } from '@salte-auth/salte-auth';
import { Facebook } from '@salte-auth/facebook';
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 Facebook({
clientID: '1133025073714056',
responseType: 'code'
})
],
handlers: [
new Redirect({
default: true
})
]
});
auth.login('facebook');