diff --git a/lib/express/sgid.js b/lib/express/sgid.js index cd41669..2d6a4ac 100644 --- a/lib/express/sgid.js +++ b/lib/express/sgid.js @@ -136,9 +136,10 @@ function config(app, { showLoginPage, serviceProvider }) { .final() } const encryptedNric = await encryptPayload(nric) + // sgID doesn't actually offer the openid scope yet const scopesArr = scopes .split(' ') - .filter((field) => field !== 'myinfo.nric_number') + .filter((field) => field !== 'openid' && field !== 'myinfo.nric_number') console.info(`userinfo scopesArr ${scopesArr}`) const myInfoFields = await Promise.all( scopesArr.map((scope) =>