-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
Attempting to move my Remix app over to Passage. The react package seems to be working okay for the client side and I'm getting the cookie stored properly. I'm having issues on the server side though.
I get this error:
TypeError: __vite_ssr_import_2__.default is not a constructor
Executing this code:
// /app/models/session.server.ts
import Passage from '@passageidentity/passage-node';
// other code
const passage = new Passage({
appID: process.env.PASSAGE_APP_ID ?? '',
apiKey: process.env.PASSAGE_API_KEY,
authStrategy: "HEADER",
});
const userId = await passage.authenticateRequest(request);
Feels like potentially an ESM issue? I do notice that your package has pretty messed up types that might be causing it. This is the linter that I usually use to debug my packages: https://publint.dev/@passageidentity/[email protected]
softbeehive
Metadata
Metadata
Assignees
Labels
No labels