diff --git a/lib/auth.guard.ts b/lib/auth.guard.ts index a7f4ed2b..c5d152f0 100644 --- a/lib/auth.guard.ts +++ b/lib/auth.guard.ts @@ -42,7 +42,7 @@ function createAuthGuard(type?: string | string[]): Type { const options = { ...defaultOptions, ...this.options, - ...this.getAuthenticateOptions(context) + ...await this.getAuthenticateOptions(context) }; const [request, response] = [ this.getRequest(context), @@ -85,7 +85,7 @@ function createAuthGuard(type?: string | string[]): Type { getAuthenticateOptions( context: ExecutionContext - ): IAuthModuleOptions | undefined { + ): Promise | IAuthModuleOptions | undefined { return undefined; } }