From 1e1811dcd1e4ce4f63550f08760923ae9d0ca63c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Xalambr=C3=AD?= Date: Thu, 30 May 2024 12:25:53 -0500 Subject: [PATCH] Apply suggestions from code review --- src/authenticator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/authenticator.ts b/src/authenticator.ts index 4af069f..243702c 100644 --- a/src/authenticator.ts +++ b/src/authenticator.ts @@ -273,12 +273,12 @@ export class Authenticator { ? request : await this.sessionStorage.getSession(request.headers.get("Cookie")); - const headers = new Headers(options.headers); + let headers = new Headers(options.headers); headers.append( "Set-Cookie", await this.sessionStorage.destroySession(session) ); - throw redirect(options.redirectTo, { headers: headers }); + throw redirect(options.redirectTo, { headers }); } }