From 3c57098bbe1f824f37162a08e9ddb0952e32f09a Mon Sep 17 00:00:00 2001 From: Mathis Date: Tue, 9 Jul 2024 14:11:13 +0200 Subject: [PATCH] feat(auth): add Auth service and module A new authentication service and module were added to the application. The app.module.ts file was updated to include this newly created AuthModule. Also, an initial structure for the AuthService was set up. --- src/app.module.ts | 4 +++- src/auth/auth.module.ts | 7 +++++++ src/auth/auth.service.ts | 4 ++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/auth/auth.module.ts create mode 100644 src/auth/auth.service.ts diff --git a/src/app.module.ts b/src/app.module.ts index 0320cd1..87d6da7 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -3,6 +3,7 @@ import { ConfigModule, ConfigService } from "@nestjs/config"; import { LogService } from "./logger/logger.service"; import { ThrottlerModule } from "@nestjs/throttler"; import { DrizzleModule } from './drizzle/drizzle.module'; +import { AuthModule } from './auth/auth.module'; @Module({ imports: [ @@ -13,7 +14,8 @@ import { DrizzleModule } from './drizzle/drizzle.module'; ConfigModule.forRoot({ isGlobal: true }), - DrizzleModule + DrizzleModule, + AuthModule ], exports: [LogService], controllers: [], diff --git a/src/auth/auth.module.ts b/src/auth/auth.module.ts new file mode 100644 index 0000000..97f2787 --- /dev/null +++ b/src/auth/auth.module.ts @@ -0,0 +1,7 @@ +import { Module } from '@nestjs/common'; +import { AuthService } from './auth.service'; + +@Module({ + providers: [AuthService] +}) +export class AuthModule {} diff --git a/src/auth/auth.service.ts b/src/auth/auth.service.ts new file mode 100644 index 0000000..a41c649 --- /dev/null +++ b/src/auth/auth.service.ts @@ -0,0 +1,4 @@ +import { Injectable } from '@nestjs/common'; + +@Injectable() +export class AuthService {}