Socket
Book a DemoInstallSign in
Socket

passport-provider

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passport-provider

Get utility methods and apis for passport strategies

1.0.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
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

passport

FAQs

Package last updated on 02 Sep 2021

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.