Skip to content

Commit

Permalink
fix: no change in session
Browse files Browse the repository at this point in the history
  • Loading branch information
ido-pluto committed Dec 26, 2023
1 parent fb806e4 commit 6581a18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/forms/src/jwt-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export class JWTSession {

setCookieHeader(headers: Headers) {
this.save();
headers.set('Set-Cookie', this.stringifyCookie);
if(this.stringifyCookie){
headers.set('Set-Cookie', this.stringifyCookie);
}
}
}

0 comments on commit 6581a18

Please sign in to comment.