SAuth
SAuth is a social authentification module that works with access token
- Supports Facebook, Twitter and Google
- Unify all drivers in one module
- Easy api
Usage
Install the dependency
Npm
npm install sauth-token
Yarn
yarn add sauth-token
Setup
const SAuth = ;const sAuth = facebook: fields: 'id' 'first_name' 'last_name' 'birthday' 'email' 'picture' twitter: consumer_key: processenvTWITTER_CONSUMER_KEY consumer_secret: processenvTWITTER_CONSUMER_SECRET google: // Not Required
Promise
sAuth ;
Async/Await
try const user = await sAuth ; console; catcherror console
Promise
sAuth ;
Async/Await
try const user = await sAuth ; console; catcherror console
Promise
sAuth ;
Async/Await
try const user = await sAuth ; console; catcherror console
Development
Want to contribute? Great!
- Clone the repository
- Create a new branch
- Make a change in your files and create your test files
Open your favorite Terminal and run the test command.
$ yarn run test
Todos
- Add support for other drivers
- Add other export methods
Author
Sami Ayed - Software Engineer and Tech Lead Contact: m.ayed.sami@gmail.com
License
MIT
Free Software, Hell Yeah!