# passport-netatmo

> Provides a netatmo authentication strategy for Passport

Latest version **1.0.1** (published 2015-02-13) · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2015-02-13 |
| First published | 2015-02-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | nibbler |
| Keywords | passport, netatmo |

## Links

- npm: https://www.npmjs.com/package/passport-netatmo
- Repository: https://github.com/Nibbler999/passport-netatmo
- Issues: https://github.com/Nibbler999/passport-netatmo/issues
- npm.io page: https://npm.io/package/passport-netatmo

## Dependencies (1)

- [passport-oauth2](https://npm.io/package/passport-oauth2.md) 1.x.x

## Alternatives

- [@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
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-02-13
- 1.0.0 — 2015-02-13

## README

# Passport Netatmo Strategy

Strategy to authenticate with Netatmo via OAuth2 in Passport

For more details, read the Netatmo developer docs at https://dev.netatmo.com/

## Installation

`$ npm install passport-netatmo`

## Usage

Assuming an [express](http://expressjs.com/) app:

    var NetatmoStrategy = require('passport-netatmo').Strategy;

    passport.use(new NetatmoStrategy({
      clientID: NETATMO_ID,
      clientSecret: NETATMO_SECRET,
      callbackURL: 'https://example.com/auth/netatmo/callback' // optional if set at dev.netatmo.com
    }));

    app.get('/auth/netatmo', passport.authenticate('netatmo'));
    app.get('/auth/netatmo/callback',
        passport.authenticate('netatmo', { }),
        function(req, res) {
          // access token is in req.user.accessToken
          // refresh token is in req.user.refreshToken
          // expires in req.user.expires_in seconds
        }
       );

## License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

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