Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodxa committed May 17, 2022
1 parent 50a58e0 commit e5ce23e
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/authenticator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,17 @@ export class Authenticator<User = unknown> {
): Promise<User> {
const strategyObj = this.strategies.get(strategy);
if (!strategyObj) throw new Error(`Strategy ${strategy} not found.`);
return strategyObj.authenticate(new Request(request.url, request), this.sessionStorage, {
throwOnError: this.throwOnError,
...options,
sessionKey: this.sessionKey,
sessionErrorKey: this.sessionErrorKey,
sessionStrategyKey: this.sessionStrategyKey,
});
return strategyObj.authenticate(
new Request(request.url, request),
this.sessionStorage,
{
throwOnError: this.throwOnError,
...options,
sessionKey: this.sessionKey,
sessionErrorKey: this.sessionErrorKey,
sessionStrategyKey: this.sessionStrategyKey,
}
);
}

/**
Expand Down

0 comments on commit e5ce23e

Please sign in to comment.