diff --git a/src/authenticator.ts b/src/authenticator.ts index f5d1406..c97f399 100644 --- a/src/authenticator.ts +++ b/src/authenticator.ts @@ -116,13 +116,17 @@ export class Authenticator { ): Promise { 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, + } + ); } /**