Spaces:
Sleeping
Sleeping
Download backend/src/modules/auth/auth.module.ts from kishankrish19/Chat: direct link, hf CLI and curl.
- Browser
- Download file 629 Bytes
-
https://huggingface.co/spaces/kishankrish19/Chat/resolve/main/backend/src/modules/auth/auth.module.ts
- Command line
-
hf download hf://spaces/kishankrish19/Chat/backend/src/modules/auth/auth.module.ts
-
curl -L -o auth.module.ts https://huggingface.co/spaces/kishankrish19/Chat/resolve/main/backend/src/modules/auth/auth.module.ts
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'; | |
| ({ | |
| imports: [ | |
| PassportModule, | |
| JwtModule.register({ | |
| secret: secret('SESSION_SIGNING_KEY'), | |
| signOptions: { expiresIn: '15m' }, | |
| }), | |
| ], | |
| controllers: [AuthController], | |
| providers: [AuthService, JwtStrategy], | |
| exports: [AuthService, JwtModule], | |
| }) | |
| export class AuthModule {} | |