"Sign in with Apple" Passport Strategy
Use Apple's brand new sign-in service with Passport.
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
- Added .npmignore to remove docs from build
 
- 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 – @Capevace – mateffy.me
Distributed under the MIT license. See LICENSE for more information.
Contributing
- Fork it (https://github.com/capevace/passport-apple-sign-in/fork)
- Create your feature branch (git checkout -b feature/fooBar)
- Commit your changes (git commit -am 'Add some fooBar')
- Push to the branch (git push origin feature/fooBar)
- Create a new Pull Request
Acknowledgments
Passport Spotify for the basic Strategy template.