# swagger-magic-social-auth-handler

> This module adds all the missing parts in the social auth aspect. It adds the relevant paths and definitons into the swagger spec and configure controllers to handle the social auth aspect.

Latest version **0.0.3** (published 2015-02-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install swagger-magic-social-auth-handler
pnpm add swagger-magic-social-auth-handler
yarn add swagger-magic-social-auth-handler
bun add swagger-magic-social-auth-handler
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2015-02-14 |
| First published | 2015-02-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 (+7 in 2 direct dependencies) |
| Install scripts | no |
| Author | Boris Sirota |
| Maintainers | borisirota |
| Keywords | swagger, swagger-magic, auth, social, social-auth, authentication, token, oauth2 |

## Links

- npm: https://www.npmjs.com/package/swagger-magic-social-auth-handler
- Repository: https://github.com/borisirota/swagger-magic-social-auth-handler
- Issues: https://github.com/borisirota/swagger-magic-social-auth-handler/issues
- npm.io page: https://npm.io/package/swagger-magic-social-auth-handler

## Dependencies (7)

- [lodash](https://npm.io/package/lodash.md) ^3.2.0
- [js-yaml](https://npm.io/package/js-yaml.md) ^3.2.6
- [passport](https://npm.io/package/passport.md) ^0.2.1
- [http-status](https://npm.io/package/http-status.md) ^0.1.8
- [querystring](https://npm.io/package/querystring.md) ^0.2.0
- [passport-facebook](https://npm.io/package/passport-facebook.md) ^1.0.3
- [passport-google-oauth](https://npm.io/package/passport-google-oauth.md) ^0.1.5

## 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
- [@oxyhq/services](https://npm.io/package/@oxyhq/services.md) — 2.3K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2015-02-14
- 0.0.2 — 2015-02-14

## README

**Install**

    npm install swagger-magic-social-auth-handler --save

<a name="module_swagger-magic-social-auth-handler"></a>
#swagger-magic-social-auth-handler
This module adds all the missing parts to the auth aspect. It adds the relevant paths and definitons into the swagger spec and configure controller.

**Params**

- swaggerObject `Object` - swagger spec representing the api  
- token `Object` - implementation of the [swagger-magic-token-interface](https://github.com/borisirota/swagger-magic-token-interface). required if securityDefinitions defined in the swagger spec  
- auth `Object` - implementation of the [swagger-magic-social-auth-interface](https://github.com/borisirota/swagger-magic-social-auth-interface). required if x-swagger-magic-social defined in the swagger spec  

**Returns**: `Object` - contains a mapping between path and a handler. {path1: function (req, res, next), path2: {req, res, next}}  
**Example**  
```javascript
    var socialAuthHandler = require("swagger-magic-social-auth-handler");

    var socialAuthController = socialAuthHandler(swaggerObject, token, auth);

    if (socialAuthController) {
       _.each(socialAuthController, function (value, key) {
            app.get(key, value);
        });
    }

```

---
_Source: https://npm.io/package/swagger-magic-social-auth-handler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
