@opengovsg/mockpass 4.0.3 → 4.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/express/sgid.js +2 -1
- package/package.json +1 -1
package/lib/express/sgid.js
CHANGED
|
@@ -136,9 +136,10 @@ function config(app, { showLoginPage, serviceProvider }) {
|
|
|
136
136
|
.final()
|
|
137
137
|
}
|
|
138
138
|
const encryptedNric = await encryptPayload(nric)
|
|
139
|
+
// sgID doesn't actually offer the openid scope yet
|
|
139
140
|
const scopesArr = scopes
|
|
140
141
|
.split(' ')
|
|
141
|
-
.filter((field) => field !== 'myinfo.nric_number')
|
|
142
|
+
.filter((field) => field !== 'openid' && field !== 'myinfo.nric_number')
|
|
142
143
|
console.info(`userinfo scopesArr ${scopesArr}`)
|
|
143
144
|
const myInfoFields = await Promise.all(
|
|
144
145
|
scopesArr.map((scope) =>
|