# passport-provider

> Get utility methods and apis for passport strategies

Latest version **1.0.3** (published 2021-09-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install passport-provider
pnpm add passport-provider
yarn add passport-provider
bun add passport-provider
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-09-02 |
| First published | 2021-09-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Salman Laskar |
| Maintainers | salmanlaskar |
| Keywords | passport, google, facebook, jwt |

## Links

- npm: https://www.npmjs.com/package/passport-provider
- Repository: https://github.com/salmanlaskar/passport-provider
- Homepage: https://github.com/salmanlaskar/passport-provider#readme
- Issues: https://github.com/salmanlaskar/passport-provider/issues
- npm.io page: https://npm.io/package/passport-provider

## Dependencies (4)

- [passport](https://npm.io/package/passport.md) ^0.4.1
- [passport-jwt](https://npm.io/package/passport-jwt.md) ^4.0.0
- [passport-facebook](https://npm.io/package/passport-facebook.md) ^3.0.0
- [passport-google-oauth20](https://npm.io/package/passport-google-oauth20.md) ^2.0.0

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2021-09-02
- 1.0.2 — 2021-09-02
- 1.0.1 — 2021-09-02
- 1.0.0 — 2021-09-02

## 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
```

---
_Source: https://npm.io/package/passport-provider · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
