adding app config and auth modules

This commit is contained in:
Noah Spannbauer
2024-05-27 18:53:16 -05:00
parent 32c2da22f5
commit 373337d8d6
17 changed files with 168 additions and 155 deletions

View File

@@ -0,0 +1,21 @@
import { Module, DynamicModule } from '@nestjs/common';
import { AuthService } from './auth.service';
import { AuthOptions } from './auth.interface';
import { AUTH_OPTIONS } from './auth.constants';
@Module({})
export class AuthModule {
static register(options: AuthOptions): DynamicModule {
return {
module: AuthModule,
providers: [
{
provide: AUTH_OPTIONS,
useValue: options
},
AuthService
],
exports: [AuthService]
};
}
}