feat: add jwt auth guard and profile endpoint

This commit is contained in:
2026-02-28 08:14:04 +03:30
parent 8212ede785
commit 06f659101d
21 changed files with 371 additions and 31 deletions
+8
View File
@@ -9,6 +9,9 @@ import { ConfigService } from '@nestjs/config';
import { LoginProvider } from './providers/login.provider';
import { GenerateTokenProvider } from './providers/generate-token.provider';
import { VerifyOTPProvider } from './providers/verify-otp.provider';
import { JwtStrategy } from './strategies/jwt.strategy';
import { APP_GUARD } from '@nestjs/core';
import { GlobalAuthGuard } from './guards/global-auth.guard';
@Module({
imports: [
@@ -33,6 +36,11 @@ import { VerifyOTPProvider } from './providers/verify-otp.provider';
GenerateTokenProvider,
LoginProvider,
VerifyOTPProvider,
JwtStrategy,
{
provide: APP_GUARD,
useClass: GlobalAuthGuard,
},
],
})
export class AuthModule {}