# passport-amebame

> Amebame authentication strategy for passport

Latest version **1.0.0** (published 2022-10-05) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-10-05 |
| First published | 2015-09-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 2 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Hirotaka Osaki |
| Maintainers | ahomu, herablog, tokimari |
| Keywords | passport, amebame, auth |

## Links

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

## Dependencies (2)

- [pkginfo](https://npm.io/package/pkginfo.md) ^0.4.1
- [passport-oauth2](https://npm.io/package/passport-oauth2.md) ^1.6.1

## 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.0 (latest) — 2022-10-05
- 1.0.0-0 (next) — 2022-09-15
- 0.2.0 — 2018-08-17
- 0.1.3 — 2016-09-09
- 0.1.2 — 2015-10-01
- 0.1.1 — 2015-09-10

## README

# passport-amebame


[Passport](http://passportjs.org/) strategy for authenticating with Amebame using the OAuth 2.0 API.


## install

```
$ npm install passport-amebame --save
```

## Usage

### Strategy Configuration

```JavaScript
const Amebame = require('passport-amebame');

passport.use(new Amebame.Strategy({
  clientID: 'YOUR_CLIENT_ID', // Required
  clientSecret: 'YOUR_CLIENT_SECRET', // Required
  scope: '', // Optional
  authOrigin: '', // Optional
  profileOrigin: '', // Optional
}, function(accessToken, refreshToken, params, profile, done) {
  User.findOrCreate({ id: profile.id, profile }, function(err, user) {
    if (err) { return done(err); }
    done(null, user);
  });
}));
```

### Authenticate Request

You can see it in [the example application](/example/login/app.js).

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