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.
This commit is contained in:
Mathis H (Avnyr) 2024-07-09 14:11:13 +02:00
parent e575b669ce
commit 3c57098bbe
Signed by: Mathis
GPG Key ID: DD9E0666A747D126
3 changed files with 14 additions and 1 deletions

View File

@ -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: [],

7
src/auth/auth.module.ts Normal file
View File

@ -0,0 +1,7 @@
import { Module } from '@nestjs/common';
import { AuthService } from './auth.service';
@Module({
providers: [AuthService]
})
export class AuthModule {}

4
src/auth/auth.service.ts Normal file
View File

@ -0,0 +1,4 @@
import { Injectable } from '@nestjs/common';
@Injectable()
export class AuthService {}