@cocreate/authenticate 1.3.9 → 1.4.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.4.1](https://github.com/CoCreate-app/CoCreate-authenticate/compare/v1.4.0...v1.4.1) (2023-10-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bump dependencies ([d36fdb5](https://github.com/CoCreate-app/CoCreate-authenticate/commit/d36fdb5b95c817207ca9ea533404bc70b4c4dc86))
7
+
8
+ # [1.4.0](https://github.com/CoCreate-app/CoCreate-authenticate/compare/v1.3.9...v1.4.0) (2023-10-22)
9
+
10
+
11
+ ### Features
12
+
13
+ * ObjectId() returns an object containg the parts iof the _id along with a toString() function ([dcff174](https://github.com/CoCreate-app/CoCreate-authenticate/commit/dcff174fb8c70c48dce2c13a613170de0aaa1727))
14
+
1
15
  ## [1.3.9](https://github.com/CoCreate-app/CoCreate-authenticate/compare/v1.3.8...v1.3.9) (2023-10-19)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/authenticate",
3
- "version": "1.3.9",
3
+ "version": "1.4.1",
4
4
  "description": "A simple authenticate component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "authenticate",
@@ -40,7 +40,7 @@
40
40
  "main": "./src/index.js",
41
41
  "homepage": "https://cocreate.app/docs/authenticate",
42
42
  "dependencies": {
43
- "@cocreate/utils": "^1.25.4",
43
+ "@cocreate/utils": "^1.26.1",
44
44
  "jsonwebtoken": "^9.0.0"
45
45
  }
46
46
  }
package/src/index.js CHANGED
@@ -31,7 +31,7 @@ function createKeyPair() {
31
31
  });
32
32
 
33
33
  const keyPair = {
34
- _id: ObjectId(),
34
+ _id: ObjectId().toString(),
35
35
  privateKey,
36
36
  publicKey,
37
37
  created: new Date().getTime(), // Store as timestamp