Skip to content

Commit

Permalink
Merge pull request #1386 from gaiuaurelian/fix/1385
Browse files Browse the repository at this point in the history
fix(@nestjs/passport): pass options to request.logIn
  • Loading branch information
kamilmysliwiec authored Aug 22, 2023
2 parents 322857a + 7c9de11 commit 0f17e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auth.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function createAuthGuard(type?: string | string[]): Type<IAuthGuard> {
): Promise<void> {
const user = request[this.options.property || defaultOptions.property];
await new Promise<void>((resolve, reject) =>
request.logIn(user, (err) => (err ? reject(err) : resolve()))
request.logIn(user, this.options, (err) => (err ? reject(err) : resolve()))
);
}

Expand Down

0 comments on commit 0f17e39

Please sign in to comment.