Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

passport-amebame

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passport-amebame

Amebame authentication strategy for passport

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
17
-96.6%
Maintainers
3
Weekly downloads
 
Created
Source

passport-amebame

Passport strategy for authenticating with Amebame using the OAuth 2.0 API.

install

$ npm install passport-amebame --save

Usage

Strategy Configuration

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.

Keywords

passport

FAQs

Package last updated on 05 Oct 2022

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