Download src/modules/auth/auth.module.ts from bardd/node-pt: direct link, hf CLI and curl.
- Browser
- Download file 907 Bytes
-
https://huggingface.co/spaces/bardd/node-pt/resolve/ca4fcfa020aaa53fd098cac7defe8d6c3f7b0afb/src/modules/auth/auth.module.ts
- Command line
-
hf download hf://spaces/bardd/node-pt@ca4fcfa020aaa53fd098cac7defe8d6c3f7b0afb/src/modules/auth/auth.module.ts
-
curl -L -o auth.module.ts https://huggingface.co/spaces/bardd/node-pt/resolve/ca4fcfa020aaa53fd098cac7defe8d6c3f7b0afb/src/modules/auth/auth.module.ts
907 Bytes
| import { Module } from '@nestjs/common'; | |
| import { AuthService } from './auth.service'; | |
| import { UserModule } from '../user/user.module'; | |
| import { AuthController } from './auth.controller'; | |
| import { DatabaseModule } from '../database/database.module'; | |
| import { UserService } from '../user/user.service'; | |
| import { JwtModule } from '@nestjs/jwt'; | |
| import { PassportModule } from '@nestjs/passport'; | |
| import { jwtConstants } from 'src/constants/jwt.constant'; | |
| import { JwtStrategy } from './jwt.strategy'; | |
| import { LocalStrategy } from './local.strategy'; | |
| ({ | |
| imports: [ | |
| DatabaseModule, | |
| UserModule, | |
| PassportModule, | |
| JwtModule.register({ | |
| secret: 'secretKey', | |
| signOptions: { expiresIn: '60d' }, | |
| }), | |
| ], | |
| controllers: [AuthController], | |
| providers: [AuthService, UserService, JwtStrategy, LocalStrategy], | |
| exports: [AuthService, UserService], | |
| }) | |
| export class AuthModule {} | |