ananay / passport-apple

Passport strategy for Sign in with Apple
https://passport-apple.ananay.dev
142 stars 49 forks source link

Export Strategy #25

Closed nesro closed 3 years ago

nesro commented 3 years ago

Hi, I am using imports like this to make a difference between different strategies:

import { Strategy as GoogleStrategy } from 'passport-google-oauth2';
import { Strategy as FacebookStrategy } from 'passport-facebook';

// this doesn't work
// import { Strategy as AppleStrategy } from 'passport-apple';

// this works:
const AppleStrategy = require('passport-apple');

This pull request makes that commented code work. I copied the change from https://github.com/jaredhanson/passport-google-oauth2/blob/master/lib/index.js

JoaquimLey commented 3 years ago

Any plans on merging this?

ananay commented 3 years ago

Hey! I'm so sorry for the delay. I'll just test this out and then I can merge it.

ananay commented 3 years ago

Merged! Thank you so much! I'll just release the new version right now.