@opengovsg/mockpass 4.0.2 → 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.
@@ -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) =>
@@ -151,7 +152,6 @@ function config(app, { showLoginPage, serviceProvider }) {
151
152
  data[name] = myInfoFields[index]
152
153
  })
153
154
  data['myinfo.nric_number'] = encryptedNric
154
- data['openid'] = uuid
155
155
  const encryptionKey = await jose.JWK.asKey(serviceProvider.pubKey, 'pem')
156
156
 
157
157
  const plaintextPayloadKey = JSON.stringify(payloadKey.toJSON(true))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengovsg/mockpass",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "A mock SingPass/CorpPass server for dev purposes",
5
5
  "main": "index.js",
6
6
  "bin": {