【问题标题】:passport.js not working with nestjs (fastify)passport.js 不能与 nestjs 一起使用(fastify)
【发布时间】:2020-08-09 21:01:13
【问题描述】:

我在 nestjs 上使用 fastifyAdapter 而不是 expressAdapter。 它给了我以下错误-

TypeError: res.setHeader is not a function
at GoogleStrategy.strategy.redirect

【问题讨论】:

    标签: passport.js nestjs fastify


    【解决方案1】:

    不幸的是,Fastify 是 not compatible with passport.js Nest.js 模块

    fastify 通常与 express 具有不同的重定向和功能,因此并非所有中间件都兼容:例如参见文档中的 redirect differences

    【讨论】:

      猜你喜欢
      • 2020-05-09
      • 2021-01-20
      • 1970-01-01
      • 2019-08-23
      • 2020-12-22
      • 1970-01-01
      • 2019-09-16
      • 2022-06-17
      • 2022-08-13
      相关资源
      最近更新 更多