1.0.3 • Published 3 years ago

passport-provider v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

What is this?

Get utility methods and apis for passport strategies

Installation

npm i passport-provider --save

Then...

//  install dependencies
npm i passport passport-facebook passport-google-oauth20 passport-jwt
//  install provider
npm i passport-provider


const { SetApp , GoogleStrategy } =require('passport-provider');
const express = require('express');
const app=express();


SetApp(app); //it will set your app and initialize passport

GoogleStrategy.googleStrategy(googleConfig, callbackMethod);
GoogleStrategy.googleApi(url, scope);
GoogleStrategy.googleCallback(url,options,callbackMethod);

Similar methods and apis for Jwt and Facebook