diff --git a/lib/auth.guard.ts b/lib/auth.guard.ts index 69b3b4a2..599b9e1a 100644 --- a/lib/auth.guard.ts +++ b/lib/auth.guard.ts @@ -87,7 +87,7 @@ function createAuthGuard(type?: string | string[]): Type { ): Promise { const user = request[this.options.property || defaultOptions.property]; await new Promise((resolve, reject) => - request.logIn(user, (err) => (err ? reject(err) : resolve())) + request.logIn(user, this.options, (err) => (err ? reject(err) : resolve())) ); }