Chat / backend /src /modules /auth /auth.module.ts
kishankrish19's picture
Deploy Stillwave fullstack clean
b0798af
Raw History Blame Contribute Delete
629 Bytes
import { Module } from '@nestjs/common';
import { JwtModule } from '@nestjs/jwt';
import { PassportModule } from '@nestjs/passport';
import { AuthController } from './auth.controller';
import { AuthService } from './auth.service';
import { JwtStrategy } from './jwt.strategy';
import { secret } from '../../core/store';
@Module({
imports: [
PassportModule,
JwtModule.register({
secret: secret('SESSION_SIGNING_KEY'),
signOptions: { expiresIn: '15m' },
}),
],
controllers: [AuthController],
providers: [AuthService, JwtStrategy],
exports: [AuthService, JwtModule],
})
export class AuthModule {}