From 7be331ca201724b2d6d50ee3e231a946ccc54f93 Mon Sep 17 00:00:00 2001 From: Munish Sharma Date: Fri, 8 Nov 2024 08:46:11 +0000 Subject: [PATCH] changes the import format for csrf --- package.json | 2 +- src/auth/models/strategy.class.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e9c030f..d285fa4 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/auth/models/strategy.class.ts b/src/auth/models/strategy.class.ts index d98a995..0f72a93 100644 --- a/src/auth/models/strategy.class.ts +++ b/src/auth/models/strategy.class.ts @@ -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 { @@ -239,9 +239,9 @@ export abstract class Strategy extends events.EventEmitter { this.serializeUser() this.deserializeUser() - ;(async () => { - await this.initialiseStrategy(this.options) - })() + ; (async () => { + await this.initialiseStrategy(this.options) + })() this.initializePassport() this.initializeSession()