2021-01-22 09:29:10 -05:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2021-01-15 12:53:09 -05:00
|
|
|
import { Module } from '@nestjs/common';
|
|
|
|
import { AuthService } from './auth.service';
|
|
|
|
import { UsersModule } from '../users/users.module';
|
|
|
|
import { PassportModule } from '@nestjs/passport';
|
|
|
|
import { TokenStrategy } from './token.strategy';
|
2021-01-22 09:29:10 -05:00
|
|
|
import { LoggerModule } from '../logger/logger.module';
|
|
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
|
|
import { AuthToken } from './auth-token.entity';
|
2021-01-15 12:53:09 -05:00
|
|
|
|
|
|
|
@Module({
|
2021-01-22 09:29:10 -05:00
|
|
|
imports: [
|
|
|
|
UsersModule,
|
|
|
|
PassportModule,
|
|
|
|
LoggerModule,
|
|
|
|
TypeOrmModule.forFeature([AuthToken]),
|
|
|
|
],
|
2021-01-15 12:53:09 -05:00
|
|
|
providers: [AuthService, TokenStrategy],
|
2021-01-22 09:29:10 -05:00
|
|
|
exports: [AuthService],
|
2021-01-15 12:53:09 -05:00
|
|
|
})
|
|
|
|
export class AuthModule {}
|