You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
541 B
20 lines
541 B
import { Module } from '@nestjs/common';
|
|
import { JwtModule } from '@nestjs/jwt';
|
|
import { AuthController } from './auth.controller';
|
|
import { AuthService } from './auth.service';
|
|
import { UsersModule } from '../users/users.module';
|
|
import { jwtConstants } from './constants';
|
|
|
|
@Module({
|
|
imports: [
|
|
UsersModule,
|
|
JwtModule.register({
|
|
global: true,
|
|
secret: jwtConstants.secret,
|
|
signOptions: { expiresIn: '1h' },
|
|
}),
|
|
],
|
|
controllers: [AuthController],
|
|
providers: [AuthService]
|
|
})
|
|
export class AuthModule {}
|
|
|