【发布时间】:2020-08-09 21:01:13
【问题描述】:
我在 nestjs 上使用 fastifyAdapter 而不是 expressAdapter。 它给了我以下错误-
TypeError: res.setHeader is not a function
at GoogleStrategy.strategy.redirect
【问题讨论】:
标签: passport.js nestjs fastify
我在 nestjs 上使用 fastifyAdapter 而不是 expressAdapter。 它给了我以下错误-
TypeError: res.setHeader is not a function
at GoogleStrategy.strategy.redirect
【问题讨论】:
标签: passport.js nestjs fastify
不幸的是,Fastify 是 not compatible with passport.js Nest.js 模块
fastify 通常与 express 具有不同的重定向和功能,因此并非所有中间件都兼容:例如参见文档中的 redirect differences
【讨论】: