passport-provider

1.0.3 • Public • Published

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

/passport-provider/

    Package Sidebar

    Install

    npm i passport-provider

    Weekly Downloads

    1

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    5.82 kB

    Total Files

    7

    Last publish

    Collaborators

    • salmanlaskar