Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc