npm

Share private packages across your team with npm Orgs, now with simplified billing via the aws marketplace!Learn more »

passport-apple-sign-in

0.0.4 • Public • Published

"Sign in with Apple" Passport Strategy

Use Apple's brand new sign-in service with Passport.

NPM Version Downloads Stats

Warning: "Sign in with Apple" is not actually on the market yet, and this library was developed according to the documentation specifications. Use with caution.

Documentation

Installation

npm install passport-apple-sign-in --save

Usage example

Use it like you would any other Passport strategy:

var AppleSignInStrategy = require('passport-apple-sign-in');
 
passport.use(
  new AppleSignInStrategy(
    {
     clientID: appKey,
     clientSecret: appSecret,
     callbackURL: 'https://example.com/auth/apple-sign-in/callback'
    },
    function(accessToken, refreshToken, expires_in, profileData, done) {
     const user = await Database.findUser(/* ... */);
 
     return done(null, user);
    }
  )
);

For detailed documentation, please refer to the Docs.

Release History

  • 0.0.4
    • Removed false dependency on express
  • 0.0.3
    • Removed false dependency on express
  • 0.0.2
    • Fixed minor docs issues
  • 0.0.1
    • Implementation according to specs

Authors

Lukas Mateffy – @Capevacemateffy.me

Distributed under the MIT license. See LICENSE for more information.

Contributing

  1. Fork it (https://github.com/capevace/passport-apple-sign-in/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Acknowledgments

Passport Spotify for the basic Strategy template.

install

npm i passport-apple-sign-in

Downloadsweekly downloads

9

version

0.0.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability