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)