victor HF Staff commited on
Commit
2ef93ef
·
1 Parent(s): 4566da9

Update isomorphic-dompurify and test token expiry logic

Browse files

Bump isomorphic-dompurify to version 2.26.0 in package.json and package-lock.json. Update test in updateUser.spec.ts to set token expiry dynamically to 1 hour from now, ensuring tests remain valid regardless of current time.

package-lock.json CHANGED
@@ -70,7 +70,7 @@
70
  "eslint-config-prettier": "^8.5.0",
71
  "eslint-plugin-svelte": "^2.45.1",
72
  "fs-extra": "^11.3.1",
73
- "isomorphic-dompurify": "^2.13.0",
74
  "js-yaml": "^4.1.0",
75
  "minimist": "^1.2.8",
76
  "mongodb-memory-server": "^10.1.2",
@@ -244,27 +244,6 @@
244
  "url": "https://github.com/sponsors/antfu"
245
  }
246
  },
247
- "node_modules/@asamuzakjp/css-color": {
248
- "version": "3.2.0",
249
- "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-3.2.0.tgz",
250
- "integrity": "sha512-K1A6z8tS3XsmCMM86xoWdn7Fkdn9m6RSVtocUrJYIwZnFVkng/PvkEoWtOWmP+Scc6saYWHWZYbndEEXxl24jw==",
251
- "dev": true,
252
- "license": "MIT",
253
- "dependencies": {
254
- "@csstools/css-calc": "^2.1.3",
255
- "@csstools/css-color-parser": "^3.0.9",
256
- "@csstools/css-parser-algorithms": "^3.0.4",
257
- "@csstools/css-tokenizer": "^3.0.3",
258
- "lru-cache": "^10.4.3"
259
- }
260
- },
261
- "node_modules/@asamuzakjp/css-color/node_modules/lru-cache": {
262
- "version": "10.4.3",
263
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",
264
- "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",
265
- "dev": true,
266
- "license": "ISC"
267
- },
268
  "node_modules/@babel/code-frame": {
269
  "version": "7.27.1",
270
  "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz",
@@ -337,10 +316,10 @@
337
  }
338
  },
339
  "node_modules/@csstools/color-helpers": {
340
- "version": "5.0.2",
341
- "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-5.0.2.tgz",
342
- "integrity": "sha512-JqWH1vsgdGcw2RR6VliXXdA0/59LttzlU8UlRT/iUUsEeWfYq8I+K0yhihEUTTHLRm1EXvpsCx3083EU15ecsA==",
343
- "dev": true,
344
  "funding": [
345
  {
346
  "type": "github",
@@ -360,7 +339,7 @@
360
  "version": "2.1.4",
361
  "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-2.1.4.tgz",
362
  "integrity": "sha512-3N8oaj+0juUw/1H3YwmDDJXCgTB1gKU6Hc/bB502u9zR0q2vd786XJH9QfrKIEgFlZmhZiq6epXl4rHqhzsIgQ==",
363
- "dev": true,
364
  "funding": [
365
  {
366
  "type": "github",
@@ -381,10 +360,10 @@
381
  }
382
  },
383
  "node_modules/@csstools/css-color-parser": {
384
- "version": "3.0.10",
385
- "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-3.0.10.tgz",
386
- "integrity": "sha512-TiJ5Ajr6WRd1r8HSiwJvZBiJOqtH86aHpUjq5aEKWHiII2Qfjqd/HCWKPOW8EP4vcspXbHnXrwIDlu5savQipg==",
387
- "dev": true,
388
  "funding": [
389
  {
390
  "type": "github",
@@ -397,7 +376,7 @@
397
  ],
398
  "license": "MIT",
399
  "dependencies": {
400
- "@csstools/color-helpers": "^5.0.2",
401
  "@csstools/css-calc": "^2.1.4"
402
  },
403
  "engines": {
@@ -412,7 +391,7 @@
412
  "version": "3.0.5",
413
  "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-3.0.5.tgz",
414
  "integrity": "sha512-DaDeUkXZKjdGhgYaHNJTV9pV7Y9B3b644jCLs9Upc3VeNGg6LWARAT6O+Q+/COo+2gg/bM5rhpMAtf70WqfBdQ==",
415
- "dev": true,
416
  "funding": [
417
  {
418
  "type": "github",
@@ -435,7 +414,7 @@
435
  "version": "3.0.4",
436
  "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-3.0.4.tgz",
437
  "integrity": "sha512-Vd/9EVDiu6PPJt9yAh6roZP6El1xHrdvIVGjyBsHR0RYwNHgL7FJPyIIW4fANJNG6FtyZfvlRPpFI4ZM/lubvw==",
438
- "dev": true,
439
  "funding": [
440
  {
441
  "type": "github",
@@ -3459,7 +3438,7 @@
3459
  "version": "7.1.3",
3460
  "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz",
3461
  "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==",
3462
- "dev": true,
3463
  "license": "MIT",
3464
  "engines": {
3465
  "node": ">= 14"
@@ -4327,10 +4306,10 @@
4327
  }
4328
  },
4329
  "node_modules/decimal.js": {
4330
- "version": "10.5.0",
4331
- "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.5.0.tgz",
4332
- "integrity": "sha512-8vDa8Qxvr/+d94hSh5P3IJwI5t8/c0KsMp+g8bNw9cY2icONa5aPfvKeieW1WlG0WQYwwhJ7mjui2xtiePQSXw==",
4333
- "dev": true,
4334
  "license": "MIT"
4335
  },
4336
  "node_modules/deep-eql": {
@@ -4440,9 +4419,9 @@
4440
  "peer": true
4441
  },
4442
  "node_modules/dompurify": {
4443
- "version": "3.2.6",
4444
- "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.2.6.tgz",
4445
- "integrity": "sha512-/2GogDQlohXPZe6D6NOgQvXLPSYBqIWMnZ8zzOhn09REE4eyAzb+Hed3jhoM9OkuaJ8P6ZGTTVWQKAi8ieIzfQ==",
4446
  "dev": true,
4447
  "license": "(MPL-2.0 OR Apache-2.0)",
4448
  "optionalDependencies": {
@@ -4534,10 +4513,10 @@
4534
  }
4535
  },
4536
  "node_modules/entities": {
4537
- "version": "6.0.0",
4538
- "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.0.tgz",
4539
- "integrity": "sha512-aKstq2TDOndCn4diEyp9Uq/Flu2i1GlLkc6XIDQSDMuaFE3OPW5OphLCyQ5SpSJZTb4reN+kTcYru5yIfXoRPw==",
4540
- "dev": true,
4541
  "license": "BSD-2-Clause",
4542
  "engines": {
4543
  "node": ">=0.12"
@@ -5706,11 +5685,38 @@
5706
  "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==",
5707
  "license": "MIT"
5708
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5709
  "node_modules/https-proxy-agent": {
5710
  "version": "7.0.6",
5711
  "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
5712
  "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
5713
- "dev": true,
5714
  "license": "MIT",
5715
  "dependencies": {
5716
  "agent-base": "^7.1.2",
@@ -5753,6 +5759,19 @@
5753
  "url": "https://github.com/sponsors/typicode"
5754
  }
5755
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
5756
  "node_modules/ieee754": {
5757
  "version": "1.2.1",
5758
  "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
@@ -5950,7 +5969,7 @@
5950
  "version": "1.0.1",
5951
  "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz",
5952
  "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==",
5953
- "dev": true,
5954
  "license": "MIT"
5955
  },
5956
  "node_modules/is-reference": {
@@ -5996,9 +6015,9 @@
5996
  "license": "ISC"
5997
  },
5998
  "node_modules/isomorphic-dompurify": {
5999
- "version": "2.25.0",
6000
- "resolved": "https://registry.npmjs.org/isomorphic-dompurify/-/isomorphic-dompurify-2.25.0.tgz",
6001
- "integrity": "sha512-bcpJzu9DOjN21qaCVpcoCwUX1ytpvA6EFqCK5RNtPg5+F0Jz9PX50jl6jbEicBNeO87eDDfC7XtPs4zjDClZJg==",
6002
  "dev": true,
6003
  "license": "MIT",
6004
  "dependencies": {
@@ -6009,14 +6028,28 @@
6009
  "node": ">=18"
6010
  }
6011
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6012
  "node_modules/isomorphic-dompurify/node_modules/cssstyle": {
6013
- "version": "4.3.1",
6014
- "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-4.3.1.tgz",
6015
- "integrity": "sha512-ZgW+Jgdd7i52AaLYCriF8Mxqft0gD/R9i9wi6RWBhs1pqdPEzPjym7rvRKi397WmQFf3SlyUsszhw+VVCbx79Q==",
6016
  "dev": true,
6017
  "license": "MIT",
6018
  "dependencies": {
6019
- "@asamuzakjp/css-color": "^3.1.2",
6020
  "rrweb-cssom": "^0.8.0"
6021
  },
6022
  "engines": {
@@ -6037,46 +6070,6 @@
6037
  "node": ">=18"
6038
  }
6039
  },
6040
- "node_modules/isomorphic-dompurify/node_modules/html-encoding-sniffer": {
6041
- "version": "4.0.0",
6042
- "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-4.0.0.tgz",
6043
- "integrity": "sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==",
6044
- "dev": true,
6045
- "license": "MIT",
6046
- "dependencies": {
6047
- "whatwg-encoding": "^3.1.1"
6048
- },
6049
- "engines": {
6050
- "node": ">=18"
6051
- }
6052
- },
6053
- "node_modules/isomorphic-dompurify/node_modules/http-proxy-agent": {
6054
- "version": "7.0.2",
6055
- "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
6056
- "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
6057
- "dev": true,
6058
- "license": "MIT",
6059
- "dependencies": {
6060
- "agent-base": "^7.1.0",
6061
- "debug": "^4.3.4"
6062
- },
6063
- "engines": {
6064
- "node": ">= 14"
6065
- }
6066
- },
6067
- "node_modules/isomorphic-dompurify/node_modules/iconv-lite": {
6068
- "version": "0.6.3",
6069
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
6070
- "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
6071
- "dev": true,
6072
- "license": "MIT",
6073
- "dependencies": {
6074
- "safer-buffer": ">= 2.1.2 < 3.0.0"
6075
- },
6076
- "engines": {
6077
- "node": ">=0.10.0"
6078
- }
6079
- },
6080
  "node_modules/isomorphic-dompurify/node_modules/jsdom": {
6081
  "version": "26.1.0",
6082
  "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-26.1.0.tgz",
@@ -6117,10 +6110,30 @@
6117
  }
6118
  }
6119
  },
6120
- "node_modules/isomorphic-dompurify/node_modules/rrweb-cssom": {
6121
- "version": "0.8.0",
6122
- "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.8.0.tgz",
6123
- "integrity": "sha512-guoltQEx+9aMf2gDZ0s62EcV8lsXR+0w8915TC3ITdn2YueuNjdAYh/levpU9nFaoChh9RUS5ZdQMrKfVEN9tw==",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6124
  "dev": true,
6125
  "license": "MIT"
6126
  },
@@ -6150,42 +6163,6 @@
6150
  "node": ">=18"
6151
  }
6152
  },
6153
- "node_modules/isomorphic-dompurify/node_modules/w3c-xmlserializer": {
6154
- "version": "5.0.0",
6155
- "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz",
6156
- "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==",
6157
- "dev": true,
6158
- "license": "MIT",
6159
- "dependencies": {
6160
- "xml-name-validator": "^5.0.0"
6161
- },
6162
- "engines": {
6163
- "node": ">=18"
6164
- }
6165
- },
6166
- "node_modules/isomorphic-dompurify/node_modules/whatwg-encoding": {
6167
- "version": "3.1.1",
6168
- "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz",
6169
- "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==",
6170
- "dev": true,
6171
- "license": "MIT",
6172
- "dependencies": {
6173
- "iconv-lite": "0.6.3"
6174
- },
6175
- "engines": {
6176
- "node": ">=18"
6177
- }
6178
- },
6179
- "node_modules/isomorphic-dompurify/node_modules/whatwg-mimetype": {
6180
- "version": "4.0.0",
6181
- "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz",
6182
- "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==",
6183
- "dev": true,
6184
- "license": "MIT",
6185
- "engines": {
6186
- "node": ">=18"
6187
- }
6188
- },
6189
  "node_modules/isomorphic-dompurify/node_modules/whatwg-url": {
6190
  "version": "14.2.0",
6191
  "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.2.0.tgz",
@@ -6200,16 +6177,6 @@
6200
  "node": ">=18"
6201
  }
6202
  },
6203
- "node_modules/isomorphic-dompurify/node_modules/xml-name-validator": {
6204
- "version": "5.0.0",
6205
- "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz",
6206
- "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==",
6207
- "dev": true,
6208
- "license": "Apache-2.0",
6209
- "engines": {
6210
- "node": ">=18"
6211
- }
6212
- },
6213
  "node_modules/jackspeak": {
6214
  "version": "3.4.3",
6215
  "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",
@@ -7369,9 +7336,9 @@
7369
  }
7370
  },
7371
  "node_modules/nwsapi": {
7372
- "version": "2.2.20",
7373
- "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.20.tgz",
7374
- "integrity": "sha512-/ieB+mDe4MrrKMT8z+mQL8klXydZWGR5Dowt4RAGKbJ3kIGEx3X4ljUo+6V73IXtUPWgfOlU5B9MlGxFO5T+cA==",
7375
  "dev": true,
7376
  "license": "MIT"
7377
  },
@@ -7660,7 +7627,7 @@
7660
  "version": "7.3.0",
7661
  "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz",
7662
  "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==",
7663
- "dev": true,
7664
  "license": "MIT",
7665
  "dependencies": {
7666
  "entities": "^6.0.0"
@@ -8704,6 +8671,13 @@
8704
  "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==",
8705
  "license": "MIT"
8706
  },
 
 
 
 
 
 
 
8707
  "node_modules/run-parallel": {
8708
  "version": "1.2.0",
8709
  "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
@@ -8773,7 +8747,7 @@
8773
  "version": "2.1.2",
8774
  "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
8775
  "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
8776
- "dev": true,
8777
  "license": "MIT"
8778
  },
8779
  "node_modules/satori": {
@@ -8810,7 +8784,7 @@
8810
  "version": "6.0.0",
8811
  "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz",
8812
  "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==",
8813
- "dev": true,
8814
  "license": "ISC",
8815
  "dependencies": {
8816
  "xmlchars": "^2.2.0"
@@ -9497,7 +9471,7 @@
9497
  "version": "3.2.4",
9498
  "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz",
9499
  "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==",
9500
- "dev": true,
9501
  "license": "MIT"
9502
  },
9503
  "node_modules/tailwind-scrollbar": {
@@ -9806,26 +9780,6 @@
9806
  "node": ">=14.0.0"
9807
  }
9808
  },
9809
- "node_modules/tldts": {
9810
- "version": "6.1.86",
9811
- "resolved": "https://registry.npmjs.org/tldts/-/tldts-6.1.86.tgz",
9812
- "integrity": "sha512-WMi/OQ2axVTf/ykqCQgXiIct+mSQDFdH2fkwhPwgEwvJ1kSzZRiinb0zF2Xb8u4+OqPChmyI6MEu4EezNJz+FQ==",
9813
- "dev": true,
9814
- "license": "MIT",
9815
- "dependencies": {
9816
- "tldts-core": "^6.1.86"
9817
- },
9818
- "bin": {
9819
- "tldts": "bin/cli.js"
9820
- }
9821
- },
9822
- "node_modules/tldts-core": {
9823
- "version": "6.1.86",
9824
- "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-6.1.86.tgz",
9825
- "integrity": "sha512-Je6p7pkk+KMzMv2XXKmAE3McmolOQFdxkKw0R8EYNr7sELW46JqnNeTX8ybPiQgvg1ymCoF8LXs5fzFaZvJPTA==",
9826
- "dev": true,
9827
- "license": "MIT"
9828
- },
9829
  "node_modules/to-regex-range": {
9830
  "version": "5.0.1",
9831
  "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
@@ -10379,6 +10333,19 @@
10379
  "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",
10380
  "license": "MIT"
10381
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
10382
  "node_modules/web-streams-polyfill": {
10383
  "version": "4.0.0-beta.3",
10384
  "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz",
@@ -10404,6 +10371,29 @@
10404
  "dev": true,
10405
  "license": "MIT"
10406
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10407
  "node_modules/which": {
10408
  "version": "2.0.2",
10409
  "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
@@ -10581,11 +10571,21 @@
10581
  }
10582
  }
10583
  },
 
 
 
 
 
 
 
 
 
 
10584
  "node_modules/xmlchars": {
10585
  "version": "2.2.0",
10586
  "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",
10587
  "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",
10588
- "dev": true,
10589
  "license": "MIT"
10590
  },
10591
  "node_modules/y18n": {
 
70
  "eslint-config-prettier": "^8.5.0",
71
  "eslint-plugin-svelte": "^2.45.1",
72
  "fs-extra": "^11.3.1",
73
+ "isomorphic-dompurify": "2.26.0",
74
  "js-yaml": "^4.1.0",
75
  "minimist": "^1.2.8",
76
  "mongodb-memory-server": "^10.1.2",
 
244
  "url": "https://github.com/sponsors/antfu"
245
  }
246
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
247
  "node_modules/@babel/code-frame": {
248
  "version": "7.27.1",
249
  "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz",
 
316
  }
317
  },
318
  "node_modules/@csstools/color-helpers": {
319
+ "version": "5.1.0",
320
+ "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-5.1.0.tgz",
321
+ "integrity": "sha512-S11EXWJyy0Mz5SYvRmY8nJYTFFd1LCNV+7cXyAgQtOOuzb4EsgfqDufL+9esx72/eLhsRdGZwaldu/h+E4t4BA==",
322
+ "devOptional": true,
323
  "funding": [
324
  {
325
  "type": "github",
 
339
  "version": "2.1.4",
340
  "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-2.1.4.tgz",
341
  "integrity": "sha512-3N8oaj+0juUw/1H3YwmDDJXCgTB1gKU6Hc/bB502u9zR0q2vd786XJH9QfrKIEgFlZmhZiq6epXl4rHqhzsIgQ==",
342
+ "devOptional": true,
343
  "funding": [
344
  {
345
  "type": "github",
 
360
  }
361
  },
362
  "node_modules/@csstools/css-color-parser": {
363
+ "version": "3.1.0",
364
+ "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-3.1.0.tgz",
365
+ "integrity": "sha512-nbtKwh3a6xNVIp/VRuXV64yTKnb1IjTAEEh3irzS+HkKjAOYLTGNb9pmVNntZ8iVBHcWDA2Dof0QtPgFI1BaTA==",
366
+ "devOptional": true,
367
  "funding": [
368
  {
369
  "type": "github",
 
376
  ],
377
  "license": "MIT",
378
  "dependencies": {
379
+ "@csstools/color-helpers": "^5.1.0",
380
  "@csstools/css-calc": "^2.1.4"
381
  },
382
  "engines": {
 
391
  "version": "3.0.5",
392
  "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-3.0.5.tgz",
393
  "integrity": "sha512-DaDeUkXZKjdGhgYaHNJTV9pV7Y9B3b644jCLs9Upc3VeNGg6LWARAT6O+Q+/COo+2gg/bM5rhpMAtf70WqfBdQ==",
394
+ "devOptional": true,
395
  "funding": [
396
  {
397
  "type": "github",
 
414
  "version": "3.0.4",
415
  "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-3.0.4.tgz",
416
  "integrity": "sha512-Vd/9EVDiu6PPJt9yAh6roZP6El1xHrdvIVGjyBsHR0RYwNHgL7FJPyIIW4fANJNG6FtyZfvlRPpFI4ZM/lubvw==",
417
+ "devOptional": true,
418
  "funding": [
419
  {
420
  "type": "github",
 
3438
  "version": "7.1.3",
3439
  "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz",
3440
  "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==",
3441
+ "devOptional": true,
3442
  "license": "MIT",
3443
  "engines": {
3444
  "node": ">= 14"
 
4306
  }
4307
  },
4308
  "node_modules/decimal.js": {
4309
+ "version": "10.6.0",
4310
+ "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz",
4311
+ "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==",
4312
+ "devOptional": true,
4313
  "license": "MIT"
4314
  },
4315
  "node_modules/deep-eql": {
 
4419
  "peer": true
4420
  },
4421
  "node_modules/dompurify": {
4422
+ "version": "3.3.0",
4423
+ "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.3.0.tgz",
4424
+ "integrity": "sha512-r+f6MYR1gGN1eJv0TVQbhA7if/U7P87cdPl3HN5rikqaBSBxLiCb/b9O+2eG0cxz0ghyU+mU1QkbsOwERMYlWQ==",
4425
  "dev": true,
4426
  "license": "(MPL-2.0 OR Apache-2.0)",
4427
  "optionalDependencies": {
 
4513
  }
4514
  },
4515
  "node_modules/entities": {
4516
+ "version": "6.0.1",
4517
+ "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz",
4518
+ "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==",
4519
+ "devOptional": true,
4520
  "license": "BSD-2-Clause",
4521
  "engines": {
4522
  "node": ">=0.12"
 
5685
  "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==",
5686
  "license": "MIT"
5687
  },
5688
+ "node_modules/html-encoding-sniffer": {
5689
+ "version": "4.0.0",
5690
+ "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-4.0.0.tgz",
5691
+ "integrity": "sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==",
5692
+ "devOptional": true,
5693
+ "license": "MIT",
5694
+ "dependencies": {
5695
+ "whatwg-encoding": "^3.1.1"
5696
+ },
5697
+ "engines": {
5698
+ "node": ">=18"
5699
+ }
5700
+ },
5701
+ "node_modules/http-proxy-agent": {
5702
+ "version": "7.0.2",
5703
+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
5704
+ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
5705
+ "devOptional": true,
5706
+ "license": "MIT",
5707
+ "dependencies": {
5708
+ "agent-base": "^7.1.0",
5709
+ "debug": "^4.3.4"
5710
+ },
5711
+ "engines": {
5712
+ "node": ">= 14"
5713
+ }
5714
+ },
5715
  "node_modules/https-proxy-agent": {
5716
  "version": "7.0.6",
5717
  "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
5718
  "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
5719
+ "devOptional": true,
5720
  "license": "MIT",
5721
  "dependencies": {
5722
  "agent-base": "^7.1.2",
 
5759
  "url": "https://github.com/sponsors/typicode"
5760
  }
5761
  },
5762
+ "node_modules/iconv-lite": {
5763
+ "version": "0.6.3",
5764
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
5765
+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
5766
+ "devOptional": true,
5767
+ "license": "MIT",
5768
+ "dependencies": {
5769
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
5770
+ },
5771
+ "engines": {
5772
+ "node": ">=0.10.0"
5773
+ }
5774
+ },
5775
  "node_modules/ieee754": {
5776
  "version": "1.2.1",
5777
  "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
 
5969
  "version": "1.0.1",
5970
  "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz",
5971
  "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==",
5972
+ "devOptional": true,
5973
  "license": "MIT"
5974
  },
5975
  "node_modules/is-reference": {
 
6015
  "license": "ISC"
6016
  },
6017
  "node_modules/isomorphic-dompurify": {
6018
+ "version": "2.26.0",
6019
+ "resolved": "https://registry.npmjs.org/isomorphic-dompurify/-/isomorphic-dompurify-2.26.0.tgz",
6020
+ "integrity": "sha512-nZmoK4wKdzPs5USq4JHBiimjdKSVAOm2T1KyDoadtMPNXYHxiENd19ou4iU/V4juFM6LVgYQnpxCYmxqNP4Obw==",
6021
  "dev": true,
6022
  "license": "MIT",
6023
  "dependencies": {
 
6028
  "node": ">=18"
6029
  }
6030
  },
6031
+ "node_modules/isomorphic-dompurify/node_modules/@asamuzakjp/css-color": {
6032
+ "version": "3.2.0",
6033
+ "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-3.2.0.tgz",
6034
+ "integrity": "sha512-K1A6z8tS3XsmCMM86xoWdn7Fkdn9m6RSVtocUrJYIwZnFVkng/PvkEoWtOWmP+Scc6saYWHWZYbndEEXxl24jw==",
6035
+ "dev": true,
6036
+ "license": "MIT",
6037
+ "dependencies": {
6038
+ "@csstools/css-calc": "^2.1.3",
6039
+ "@csstools/css-color-parser": "^3.0.9",
6040
+ "@csstools/css-parser-algorithms": "^3.0.4",
6041
+ "@csstools/css-tokenizer": "^3.0.3",
6042
+ "lru-cache": "^10.4.3"
6043
+ }
6044
+ },
6045
  "node_modules/isomorphic-dompurify/node_modules/cssstyle": {
6046
+ "version": "4.6.0",
6047
+ "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-4.6.0.tgz",
6048
+ "integrity": "sha512-2z+rWdzbbSZv6/rhtvzvqeZQHrBaqgogqt85sqFNbabZOuFbCVFb8kPeEtZjiKkbrm395irpNKiYeFeLiQnFPg==",
6049
  "dev": true,
6050
  "license": "MIT",
6051
  "dependencies": {
6052
+ "@asamuzakjp/css-color": "^3.2.0",
6053
  "rrweb-cssom": "^0.8.0"
6054
  },
6055
  "engines": {
 
6070
  "node": ">=18"
6071
  }
6072
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6073
  "node_modules/isomorphic-dompurify/node_modules/jsdom": {
6074
  "version": "26.1.0",
6075
  "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-26.1.0.tgz",
 
6110
  }
6111
  }
6112
  },
6113
+ "node_modules/isomorphic-dompurify/node_modules/lru-cache": {
6114
+ "version": "10.4.3",
6115
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",
6116
+ "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",
6117
+ "dev": true,
6118
+ "license": "ISC"
6119
+ },
6120
+ "node_modules/isomorphic-dompurify/node_modules/tldts": {
6121
+ "version": "6.1.86",
6122
+ "resolved": "https://registry.npmjs.org/tldts/-/tldts-6.1.86.tgz",
6123
+ "integrity": "sha512-WMi/OQ2axVTf/ykqCQgXiIct+mSQDFdH2fkwhPwgEwvJ1kSzZRiinb0zF2Xb8u4+OqPChmyI6MEu4EezNJz+FQ==",
6124
+ "dev": true,
6125
+ "license": "MIT",
6126
+ "dependencies": {
6127
+ "tldts-core": "^6.1.86"
6128
+ },
6129
+ "bin": {
6130
+ "tldts": "bin/cli.js"
6131
+ }
6132
+ },
6133
+ "node_modules/isomorphic-dompurify/node_modules/tldts-core": {
6134
+ "version": "6.1.86",
6135
+ "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-6.1.86.tgz",
6136
+ "integrity": "sha512-Je6p7pkk+KMzMv2XXKmAE3McmolOQFdxkKw0R8EYNr7sELW46JqnNeTX8ybPiQgvg1ymCoF8LXs5fzFaZvJPTA==",
6137
  "dev": true,
6138
  "license": "MIT"
6139
  },
 
6163
  "node": ">=18"
6164
  }
6165
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6166
  "node_modules/isomorphic-dompurify/node_modules/whatwg-url": {
6167
  "version": "14.2.0",
6168
  "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.2.0.tgz",
 
6177
  "node": ">=18"
6178
  }
6179
  },
 
 
 
 
 
 
 
 
 
 
6180
  "node_modules/jackspeak": {
6181
  "version": "3.4.3",
6182
  "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",
 
7336
  }
7337
  },
7338
  "node_modules/nwsapi": {
7339
+ "version": "2.2.22",
7340
+ "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.22.tgz",
7341
+ "integrity": "sha512-ujSMe1OWVn55euT1ihwCI1ZcAaAU3nxUiDwfDQldc51ZXaB9m2AyOn6/jh1BLe2t/G8xd6uKG1UBF2aZJeg2SQ==",
7342
  "dev": true,
7343
  "license": "MIT"
7344
  },
 
7627
  "version": "7.3.0",
7628
  "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz",
7629
  "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==",
7630
+ "devOptional": true,
7631
  "license": "MIT",
7632
  "dependencies": {
7633
  "entities": "^6.0.0"
 
8671
  "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==",
8672
  "license": "MIT"
8673
  },
8674
+ "node_modules/rrweb-cssom": {
8675
+ "version": "0.8.0",
8676
+ "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.8.0.tgz",
8677
+ "integrity": "sha512-guoltQEx+9aMf2gDZ0s62EcV8lsXR+0w8915TC3ITdn2YueuNjdAYh/levpU9nFaoChh9RUS5ZdQMrKfVEN9tw==",
8678
+ "devOptional": true,
8679
+ "license": "MIT"
8680
+ },
8681
  "node_modules/run-parallel": {
8682
  "version": "1.2.0",
8683
  "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
 
8747
  "version": "2.1.2",
8748
  "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
8749
  "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
8750
+ "devOptional": true,
8751
  "license": "MIT"
8752
  },
8753
  "node_modules/satori": {
 
8784
  "version": "6.0.0",
8785
  "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz",
8786
  "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==",
8787
+ "devOptional": true,
8788
  "license": "ISC",
8789
  "dependencies": {
8790
  "xmlchars": "^2.2.0"
 
9471
  "version": "3.2.4",
9472
  "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz",
9473
  "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==",
9474
+ "devOptional": true,
9475
  "license": "MIT"
9476
  },
9477
  "node_modules/tailwind-scrollbar": {
 
9780
  "node": ">=14.0.0"
9781
  }
9782
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9783
  "node_modules/to-regex-range": {
9784
  "version": "5.0.1",
9785
  "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
 
10333
  "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",
10334
  "license": "MIT"
10335
  },
10336
+ "node_modules/w3c-xmlserializer": {
10337
+ "version": "5.0.0",
10338
+ "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz",
10339
+ "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==",
10340
+ "devOptional": true,
10341
+ "license": "MIT",
10342
+ "dependencies": {
10343
+ "xml-name-validator": "^5.0.0"
10344
+ },
10345
+ "engines": {
10346
+ "node": ">=18"
10347
+ }
10348
+ },
10349
  "node_modules/web-streams-polyfill": {
10350
  "version": "4.0.0-beta.3",
10351
  "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz",
 
10371
  "dev": true,
10372
  "license": "MIT"
10373
  },
10374
+ "node_modules/whatwg-encoding": {
10375
+ "version": "3.1.1",
10376
+ "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz",
10377
+ "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==",
10378
+ "devOptional": true,
10379
+ "license": "MIT",
10380
+ "dependencies": {
10381
+ "iconv-lite": "0.6.3"
10382
+ },
10383
+ "engines": {
10384
+ "node": ">=18"
10385
+ }
10386
+ },
10387
+ "node_modules/whatwg-mimetype": {
10388
+ "version": "4.0.0",
10389
+ "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz",
10390
+ "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==",
10391
+ "devOptional": true,
10392
+ "license": "MIT",
10393
+ "engines": {
10394
+ "node": ">=18"
10395
+ }
10396
+ },
10397
  "node_modules/which": {
10398
  "version": "2.0.2",
10399
  "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
 
10571
  }
10572
  }
10573
  },
10574
+ "node_modules/xml-name-validator": {
10575
+ "version": "5.0.0",
10576
+ "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz",
10577
+ "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==",
10578
+ "devOptional": true,
10579
+ "license": "Apache-2.0",
10580
+ "engines": {
10581
+ "node": ">=18"
10582
+ }
10583
+ },
10584
  "node_modules/xmlchars": {
10585
  "version": "2.2.0",
10586
  "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",
10587
  "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",
10588
+ "devOptional": true,
10589
  "license": "MIT"
10590
  },
10591
  "node_modules/y18n": {
package.json CHANGED
@@ -44,7 +44,7 @@
44
  "eslint-config-prettier": "^8.5.0",
45
  "eslint-plugin-svelte": "^2.45.1",
46
  "fs-extra": "^11.3.1",
47
- "isomorphic-dompurify": "^2.13.0",
48
  "js-yaml": "^4.1.0",
49
  "minimist": "^1.2.8",
50
  "mongodb-memory-server": "^10.1.2",
 
44
  "eslint-config-prettier": "^8.5.0",
45
  "eslint-plugin-svelte": "^2.45.1",
46
  "fs-extra": "^11.3.1",
47
+ "isomorphic-dompurify": "2.26.0",
48
  "js-yaml": "^4.1.0",
49
  "minimist": "^1.2.8",
50
  "mongodb-memory-server": "^10.1.2",
src/routes/login/callback/updateUser.spec.ts CHANGED
@@ -25,7 +25,7 @@ const locals = {
25
  const token = {
26
  access_token: "access_token",
27
  refresh_token: "refresh_token",
28
- expires_at: 1717334400,
29
  expires_in: 3600,
30
  } as TokenSet;
31
 
@@ -98,6 +98,7 @@ describe("login", () => {
98
  it("should create default settings for new user", async () => {
99
  await updateUser({ userData, locals, cookies: cookiesMock, token });
100
 
 
101
  const user = (await findUser(locals.sessionId)).user;
102
 
103
  assert.exists(user);
 
25
  const token = {
26
  access_token: "access_token",
27
  refresh_token: "refresh_token",
28
+ expires_at: Math.floor(Date.now() / 1000) + 3600, // Expires 1 hour from now
29
  expires_in: 3600,
30
  } as TokenSet;
31
 
 
98
  it("should create default settings for new user", async () => {
99
  await updateUser({ userData, locals, cookies: cookiesMock, token });
100
 
101
+ // updateUser creates a new sessionId, so we need to use the updated value
102
  const user = (await findUser(locals.sessionId)).user;
103
 
104
  assert.exists(user);