@opengovsg/mockpass 3.0.2 → 3.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.
@@ -11,13 +11,14 @@ const pki = function pki(authHeader, req, context = {}) {
11
11
 
12
12
  const url = `${req.protocol}://${req.get('host')}${req.baseUrl}${req.path}`
13
13
 
14
- const { method: httpMethod, query } = req
14
+ const { method: httpMethod, query, body } = req
15
15
 
16
16
  const { signature, app_id, nonce, timestamp } = authHeaderFields
17
17
 
18
18
  const params = Object.assign(
19
19
  {},
20
20
  query,
21
+ body,
21
22
  {
22
23
  nonce,
23
24
  app_id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengovsg/mockpass",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "description": "A mock SingPass/CorpPass server for dev purposes",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -41,7 +41,7 @@
41
41
  "dotenv": "^16.0.0",
42
42
  "expiry-map": "^2.0.0",
43
43
  "express": "^4.16.3",
44
- "jsonwebtoken": "^8.4.0",
44
+ "jsonwebtoken": "^9.0.0",
45
45
  "lodash": "^4.17.11",
46
46
  "morgan": "^1.9.1",
47
47
  "mustache": "^4.2.0",