From 78117574f50d9e59a7d6be483d303b388186f086 Mon Sep 17 00:00:00 2001 From: JoelClemence Date: Wed, 17 Apr 2024 12:52:56 +0100 Subject: [PATCH 1/2] Add Session Key for csrf_token --- src/session/keys/SessionKey.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/session/keys/SessionKey.ts b/src/session/keys/SessionKey.ts index 40d9c17..2374511 100644 --- a/src/session/keys/SessionKey.ts +++ b/src/session/keys/SessionKey.ts @@ -8,5 +8,6 @@ export enum SessionKey { Hijacked = ".hijacked", OAuth2Nonce = ".oauth2_nonce", ZXSKey = ".zxs_key", - Pst = "pst" + Pst = "pst", + CsrfToken = "csrf_token" } From 974568cf91e66ddbc06862f14b32f0c4f1af7623 Mon Sep 17 00:00:00 2001 From: JoelClemence Date: Wed, 17 Apr 2024 12:57:51 +0100 Subject: [PATCH 2/2] Add session key to session interface --- src/session/model/SessionInterfaces.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/session/model/SessionInterfaces.ts b/src/session/model/SessionInterfaces.ts index 49afe1c..1ed6520 100644 --- a/src/session/model/SessionInterfaces.ts +++ b/src/session/model/SessionInterfaces.ts @@ -15,7 +15,8 @@ export type ISession = { [SessionKey.LastAccess]?: number, [SessionKey.Pst]?: string, [SessionKey.SignInInfo]?: ISignInInfo, - [SessionKey.ExtraData]?: any + [SessionKey.ExtraData]?: any, + [SessionKey.CsrfToken]?: string }; export type ISignInInfo = {