Socket
Socket
Sign inDemoInstall

passport-provider

Package Overview
Dependencies
28
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    passport-provider

Get utility methods and apis for passport strategies


Version published
Weekly downloads
3
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 02 Sep 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc