Skip to content
This repository was archived by the owner on Jun 2, 2022. It is now read-only.

Capevace/passport-apple-sign-in

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation





This project has been deprecated, as better options have emerged.

Please use passport-apple or similar libraries in the future.









"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.

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 – @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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors