passport-provider
v1.0.3
Published
Get utility methods and apis for passport strategies
Downloads
13
Maintainers
Readme
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