diff --git a/lib/assertions.js b/lib/assertions.js index 1ba6d17..bd9ecd2 100644 --- a/lib/assertions.js +++ b/lib/assertions.js @@ -135,8 +135,12 @@ const oidc = { nonce, accessToken = crypto.randomBytes(15).toString('hex'), ) => { - const sub = `s=${nric},u=${uuid}` - + let sub + if(nric.startsWith('Y')){ + sub = `s=${nric},fid='G730Z-H5P96',coi='DE',u=${uuid}` + }else{ + sub = `s=${nric},u=${uuid}` + } const accessTokenHash = hashToken(accessToken) const refreshToken = crypto.randomBytes(20).toString('hex')