From 6581a183c66f47bf8da2c4c2d05b25fc3c695b85 Mon Sep 17 00:00:00 2001 From: ido Date: Tue, 26 Dec 2023 12:48:19 +0200 Subject: [PATCH] fix: no change in session --- packages/forms/src/jwt-session.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/forms/src/jwt-session.ts b/packages/forms/src/jwt-session.ts index 837f3e2..692383f 100644 --- a/packages/forms/src/jwt-session.ts +++ b/packages/forms/src/jwt-session.ts @@ -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); + } } }