Comments (10)
I've faced with same issue using TypeScript -> ESM
from fastify-passport.
Thanks you for your help Matteo and also thank for this amazing package
from fastify-passport.
I didn't write this :). @airhorns did most of the work!
Sorry i was talking about fastify
from fastify-passport.
Are you using typescript, faux modules (esm
module or webpack) or native esm?
from fastify-passport.
Are you using typescript, faux modules (
esm
module or webpack) or native esm?
Javascript with webpack
from fastify-passport.
you are likely having some problems with import
and that config. Try using require instead.
from fastify-passport.
I cannot use require, also in the example it uses import, it should work...
there is any alternative? i am stuck and i need this package do you have any suggestion how to move forward?
edit: i think that right now i can go with fastify-oauth2
from fastify-passport.
@fastify/typescript could you take a look at this? I think we should update the readme somehow to show how to use this module with commonjs instead, as import
can mean so many different things to folks.
there is any alternative? i am stuck and i need this package do you have any suggestion how to move forward?
I recommend you to check your webpack config and inspect how the final code is actually generated. You might just have to tweak some options to make it work.
from fastify-passport.
I didn't write this :). @airhorns did most of the work!
from fastify-passport.
@aspiiire did you figure out a solution here? If you can share a simplified reproduction that'll help us narrow down the problem you're having
from fastify-passport.
Related Issues (20)
- Duplicate 'passport' decorator error when instantiating multiple Authenticator instances HOT 3
- Add support of 'keepSessionInfo' bool param for strategies HOT 2
- Infinite authentication loop on protected route HOT 3
- Update workflow, update dependencies and release new major HOT 1
- Migrate to `node:test` and `c8` HOT 2
- Protected routes array when registering passport.initalize() HOT 3
- Use session or not as an option HOT 7
- passport-github verify callback never called? HOT 9
- Using fastify-secure-session with openid-client strategy HOT 8
- Failed to serialize user into session HOT 3
- Cannot publish new module HOT 1
- `state` param is not included in the Typescript interface for AuthenticateOptions HOT 1
- Calling Strategy.fail with 2 arguments is misinterpreted by the compiler HOT 8
- How to print custom error message instead of default "Unauthorized" or "Bad request" HOT 2
- Fastify Custom Strategy, redirect method not working - TypeError: res.setHeader is not a function HOT 3
- the user property remains occupied by the type when userProperty is changed HOT 3
- passport types not exists when using ESM + Typescript HOT 1
- @fastify/jwt and @fastify/passport FST_ERR_DEC_ALREADY_PRESENT HOT 1
- using fastify-passport with passport-jwt strategy HOT 2
- Invalid Typings for PassportUser in Typescript HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastify-passport.