diff --git a/src/authenticator.ts b/src/authenticator.ts index f0b75f5..f5d1406 100644 --- a/src/authenticator.ts +++ b/src/authenticator.ts @@ -116,7 +116,7 @@ export class Authenticator { ): Promise { const strategyObj = this.strategies.get(strategy); if (!strategyObj) throw new Error(`Strategy ${strategy} not found.`); - return strategyObj.authenticate(request.clone(), this.sessionStorage, { + return strategyObj.authenticate(new Request(request.url, request), this.sessionStorage, { throwOnError: this.throwOnError, ...options, sessionKey: this.sessionKey,