From fda2eb01ec79dd2a0abc3442f68ae095d0e6d396 Mon Sep 17 00:00:00 2001 From: tone <3341154833@qq.com> Date: Wed, 7 May 2025 13:36:36 +0800 Subject: [PATCH] =?UTF-8?q?app=E5=8A=A0=E5=85=A5PassportModule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tone-page-server/src/app.module.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tone-page-server/src/app.module.ts b/tone-page-server/src/app.module.ts index 00a014e..9c71e46 100644 --- a/tone-page-server/src/app.module.ts +++ b/tone-page-server/src/app.module.ts @@ -7,6 +7,7 @@ import { UserModule } from './user/user.module'; import { AuthModule } from './auth/auth.module'; import { VerificationModule } from './verification/verification.module'; import { NotificationModule } from './notification/notification.module'; +import { PassportModule } from '@nestjs/passport'; @Module({ imports: [ @@ -22,6 +23,7 @@ import { NotificationModule } from './notification/notification.module'; entities: [], synchronize: process.env.NODE_ENV !== 'production', // Set to false in production }), + PassportModule.register({ defaultStrategy: 'jwt' }), UserModule, AuthModule, VerificationModule,