import { Global, Module } from '@nestjs/common';
import { UsersLibModule } from '../../users/src';
import { OidcDiscoveryService } from './oidc-discovery.service';
import { OidcAuthGuard } from './oidc-auth.guard';
import { TokenExchangeService } from './token-exchange.service';

@Global()
@Module({
  imports: [UsersLibModule],
  providers: [OidcDiscoveryService, OidcAuthGuard, TokenExchangeService],
  exports: [
    OidcDiscoveryService,
    OidcAuthGuard,
    TokenExchangeService,
    UsersLibModule,
  ],
})
export class AuthModule {}
