staff_data/apps/server/src/auth/auth.module.ts

15 lines
358 B
TypeScript
Raw Normal View History

2024-09-03 20:19:33 +08:00
import { Module } from '@nestjs/common';
import { AuthService } from './auth.service';
import { JwtModule } from '@nestjs/jwt';
import { env } from '@server/env';
@Module({
providers: [AuthService],
imports: [JwtModule.register({
global: true,
secret: env.JWT_SECRET,
signOptions: { expiresIn: '60s' },
}),]
})
export class AuthModule { }