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.

Package Sidebar

Install

npm i passport-apple-sign-in

Weekly Downloads

3

Version

0.0.4

License

MIT

Unpacked Size

7.83 kB

Total Files

6

Last publish

Collaborators

  • capevace