import { DynamicModule , Module } from '@nestjs/common' ; import { JwtStrategy } from './jwt.strategy' ; export interface AuthConfig { audience : string ; issuer : string ; } @ Module ( { } ) export class AuthModule { static register ( options ) { return { module : AuthModule , providers : [ { provide : JwtStrategy , useValue : new JwtStrategy ( options ) , } , ] , exports : [ JwtStrategy ] , } ; } }