Skip to content

Commit

Permalink
Merge pull request #319 from companieshouse/feature/csrf-token
Browse files Browse the repository at this point in the history
Add Session Key for csrf_token
  • Loading branch information
JoelClemence committed Apr 17, 2024
2 parents 5564874 + 974568c commit 5f87431
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/session/keys/SessionKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ export enum SessionKey {
Hijacked = ".hijacked",
OAuth2Nonce = ".oauth2_nonce",
ZXSKey = ".zxs_key",
Pst = "pst"
Pst = "pst",
CsrfToken = "csrf_token"
}
3 changes: 2 additions & 1 deletion src/session/model/SessionInterfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 5f87431

Please sign in to comment.