Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seems like require('passport-mock').Strategy doesn't return a strategy any more #15

Open
yentsun opened this issue Sep 8, 2017 · 2 comments

Comments

@yentsun
Copy link

yentsun commented Sep 8, 2017

When trying to do what is described in the docs:

const Strategy = require('passport-mock').Strategy;
passport.use(new Strategy(...));

I get TypeError: Strategy is not a constructor error.

Looking at the code I actually don't see any strategy exports there. Docs outdated?

@yentsun yentsun changed the title seems like require('passport-mock') doesn't return a strategy any more seems like require('passport-mock').Strategy doesn't return a strategy any more Sep 8, 2017
@benfluleck
Copy link

I am getting this error as well with ES6 imports

@guyellis
Copy link

guyellis commented Aug 8, 2018

@yentsun @benfluleck I've forked this repo to https://github.com/passport-next/passport-mocked to continue work on it. If this is still an issue for you please recreate there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants