0

I am using fastifyAdapter instead of expressAdapter on nestjs. it gives me following error-

TypeError: res.setHeader is not a function
at GoogleStrategy.strategy.redirect
Nikhil Shisode
  • 165
  • 1
  • 15

1 Answers1

2

Unfortunately, Fastify is not compatible with passport.js Nest.js module

fastify has different redirect and functions in general from express, so not all middlewares are compatible: see for example redirect differences from docs

leonardfactory
  • 3,353
  • 1
  • 18
  • 25