Download apps/api/src/modules/auth/auth.module.ts from qf46578/omnics: direct link, hf CLI and curl.
- Browser
- Download file 727 Bytes
-
https://huggingface.co/spaces/qf46578/omnics/resolve/main/apps/api/src/modules/auth/auth.module.ts
- Command line
-
hf download hf://spaces/qf46578/omnics/apps/api/src/modules/auth/auth.module.ts
-
curl -L -o auth.module.ts https://huggingface.co/spaces/qf46578/omnics/resolve/main/apps/api/src/modules/auth/auth.module.ts
727 Bytes
| import { Module } from '@nestjs/common'; | |
| import { JwtModule } from '@nestjs/jwt'; | |
| import { PassportModule } from '@nestjs/passport'; | |
| import { AuthService } from './services/auth.service'; | |
| import { JwtStrategy } from './strategies/jwt.strategy'; | |
| import { AuthController } from './controllers/auth.controller'; | |
| import { UserModule } from '../users/user.module'; | |
| ({ | |
| imports: [ | |
| UserModule, | |
| PassportModule.register({ defaultStrategy: 'jwt' }), | |
| JwtModule.register({ | |
| secret: process.env.JWT_SECRET || 'omnics-secret-key', | |
| signOptions: { expiresIn: '24h' }, | |
| }), | |
| ], | |
| controllers: [AuthController], | |
| providers: [AuthService, JwtStrategy], | |
| exports: [AuthService], | |
| }) | |
| export class AuthModule {} | |