Skip to content

Commit

Permalink
changes the import format for csrf
Browse files Browse the repository at this point in the history
  • Loading branch information
MunishSharmaHMCTS committed Nov 8, 2024
1 parent f7f5cbf commit 7be331c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hmcts/rpx-xui-node-lib",
"version": "2.29.4-exui-2079-rc3",
"version": "2.29.4-exui-2079-rc4",
"description": "Common nodejs library components for XUI",
"main": "dist/index",
"types": "dist/index.d.ts",
Expand Down
8 changes: 4 additions & 4 deletions src/auth/models/strategy.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { AuthOptions } from './authOptions.interface'
import Joi from 'joi'
import * as URL from 'url'
import { generators } from 'openid-client'
import * as csrf from '@dr.pogodin/csurf'
import csrf from '@dr.pogodin/csurf'
import { MySessionData } from './sessionData.interface'

export abstract class Strategy extends events.EventEmitter {
Expand Down Expand Up @@ -239,9 +239,9 @@ export abstract class Strategy extends events.EventEmitter {

this.serializeUser()
this.deserializeUser()
;(async () => {
await this.initialiseStrategy(this.options)
})()
; (async () => {

Check failure on line 242 in src/auth/models/strategy.class.ts

View workflow job for this annotation

GitHub Actions / build

Replace `····;·` with `;`
await this.initialiseStrategy(this.options)

Check failure on line 243 in src/auth/models/strategy.class.ts

View workflow job for this annotation

GitHub Actions / build

Delete `····`
})()

Check failure on line 244 in src/auth/models/strategy.class.ts

View workflow job for this annotation

GitHub Actions / build

Delete `····`

this.initializePassport()
this.initializeSession()
Expand Down

0 comments on commit 7be331c

Please sign in to comment.