From 733ee0d3b9c499cc2bf442d11352e66d5aaa7880 Mon Sep 17 00:00:00 2001 From: JaneYU <28294210+zheyu1991@users.noreply.github.com> Date: Mon, 26 Aug 2024 14:55:09 +0800 Subject: [PATCH] fix: fix eslint error (#682) --- lib/assertions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/assertions.js b/lib/assertions.js index bd9ecd2..b85f573 100644 --- a/lib/assertions.js +++ b/lib/assertions.js @@ -136,9 +136,9 @@ const oidc = { accessToken = crypto.randomBytes(15).toString('hex'), ) => { let sub - if(nric.startsWith('Y')){ - sub = `s=${nric},fid='G730Z-H5P96',coi='DE',u=${uuid}` - }else{ + if (nric.startsWith('Y')) { + sub = `s=${nric},fid='G730Z-H5P96',coi='DE',u=${uuid}` + } else { sub = `s=${nric},u=${uuid}` } const accessTokenHash = hashToken(accessToken)