我尝试使用JwtAuthGuard来区分通过身份验证的请求和未通过身份验证的请求。 我确实遵循了official Nestjs documentation on authentification,但是,我不能让它工作,因为我得到了一个打字错误:TS2339: Property 'user' does not exist on type 'Request'. bookmarks.controller.ts import { Controller, Get, Req, UseGuards } from '@nestjs/common'
import
当我嵌套启动代码时,它会出现以下错误,问题是什么?
我将ConfigModule设置为Gloabl,因此不需要导入。
如果我错过任何密码,请告诉我,我可以在这里张贴。
我引用中的用法
我以前在硬编码的秘密和选项中使用JwtModule.register(),它工作得很好。
[Nest] 159128 - 02/27/2021, 6:27:15 PM [ExceptionHandler] Nest cannot create the AuthModule instance.
The module at index [2] of the AuthModule "imports