UNPKG

bb-inspired

Version:

Core library for BB-inspired NestJS backend

25 lines (24 loc) 598 B
import { DynamicModule } from '@nestjs/common'; export interface AuthOptions { jwt: { secret: string; expiresIn?: string | number; refreshExpiresIn?: string | number; issuer?: string; audience?: string; }; userService?: any; strategies?: { jwt?: boolean; local?: boolean; oauth?: boolean; }; synchronization?: { enabled?: boolean; strategy?: 'polling' | 'events'; interval?: number; }; } export declare class AuthModule { static register(options: AuthOptions): DynamicModule; }