Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including passport-apple-sign-in with all npm packages installed. Try it out:

var passportAppleSignIn = require("passport-apple-sign-in")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

passport-apple-sign-in v0.0.4

Sign In with Apple Strategy for Passport.

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



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');

  new AppleSignInStrategy(
        clientID: appKey,
        clientSecret: appSecret,
        callbackURL: ''
    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


Lukas Mateffy –

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


  1. Fork it (
  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


Passport Spotify for the basic Strategy template.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free