Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodxa committed May 30, 2024
1 parent 80deb37 commit 1e1811d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/authenticator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,12 @@ export class Authenticator<User = unknown> {
? 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 });
}
}

0 comments on commit 1e1811d

Please sign in to comment.