Open guidev opened 5 months ago
Heya!
I'm getting the exact same thing during a conversion from CJS to ESM. I suspect it has to do with the way imports are handled in ESM, but that's about all I know about it.
Are you using CJS or ESM, @guidev ? Additionally, did you manage to find a solution or workaround?
If not I would think that the "trick" that works for some of the other strategy packages would work:
const MagicLoginStrategy = require("passport-magic-login").Strategy
Do note I haven't tested or verified this, it's just something I suspect might work
After a bit of googling it turns out there is an answer for this: Simply do:
import MagicLoginStrategy from "passport-magic-login";
const magicLogin = new MagicLoginStrategy.default();
I get the following error when trying to use it with typescript:
my code