- Backend (NestJS): 82 suites, 641 tests passing; 0 ESLint errors; 0 tsc errors. Hardened SSL cert/key matching, SSRF IP pinning, and eBank validation. - Admin Panel (Vite/React): 48 suites, 300 tests passing; 0 ESLint errors; 0 tsc errors. Full coverage across all pages and settings. - Storefront (Next.js): 62 suites, 368 tests passing; 0 ESLint errors; 0 tsc errors. - Fixed unmount lifecycle guards, promise error handling, and component edge cases.
31 lines
895 B
TypeScript
31 lines
895 B
TypeScript
import { Module, forwardRef } from "@nestjs/common";
|
|
import { JwtModule } from "@nestjs/jwt";
|
|
import { PassportModule } from "@nestjs/passport";
|
|
import { AuthService } from "./auth.service";
|
|
import { AuthController } from "./auth.controller";
|
|
import { JwtStrategy } from "./jwt.strategy";
|
|
import { UsersModule } from "../users/users.module";
|
|
import { AdminModule } from "../admin/admin.module";
|
|
import { getJwtSecret } from "./auth.constants";
|
|
|
|
import { RedisModule } from "../redis/redis.module";
|
|
|
|
@Module({
|
|
imports: [
|
|
UsersModule,
|
|
forwardRef(() => AdminModule),
|
|
PassportModule,
|
|
RedisModule,
|
|
JwtModule.registerAsync({
|
|
useFactory: () => ({
|
|
secret: getJwtSecret(),
|
|
signOptions: { expiresIn: "2h" },
|
|
}),
|
|
}),
|
|
],
|
|
controllers: [AuthController],
|
|
providers: [AuthService, JwtStrategy],
|
|
exports: [AuthService],
|
|
})
|
|
export class AuthModule {}
|