@test2doc/playwright-passkey-gen 0.0.3 → 0.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/package.json +1 -1
- package/src/generate-passkey/cli.ts +4 -1
- package/test-passkey.ts +87 -0
package/package.json
CHANGED
|
@@ -35,7 +35,10 @@ const generatorPath = isInDist
|
|
|
35
35
|
? join(__dirname, "index.js")
|
|
36
36
|
: join(distRoot, "src/generate-passkey/index.js")
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
// Forward all CLI arguments (skip first 2: node path and script path)
|
|
39
|
+
const args = process.argv.slice(2)
|
|
40
|
+
|
|
41
|
+
const generator = spawn("node", [generatorPath, ...args], {
|
|
39
42
|
stdio: "inherit",
|
|
40
43
|
})
|
|
41
44
|
|
package/test-passkey.ts
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export const TESTPASSKEY = {
|
|
2
|
+
"username": "testuser",
|
|
3
|
+
"userId": "fe8d446e-96a9-4ef5-a968-328755cb149c",
|
|
4
|
+
"credentialId": "1EdjdkZ9fMkqmiqAf2iRmNMP6QH5Cenz7auxXmGsLZY=",
|
|
5
|
+
"publicKey": [
|
|
6
|
+
165,
|
|
7
|
+
1,
|
|
8
|
+
2,
|
|
9
|
+
3,
|
|
10
|
+
38,
|
|
11
|
+
32,
|
|
12
|
+
1,
|
|
13
|
+
33,
|
|
14
|
+
88,
|
|
15
|
+
32,
|
|
16
|
+
28,
|
|
17
|
+
90,
|
|
18
|
+
62,
|
|
19
|
+
194,
|
|
20
|
+
20,
|
|
21
|
+
223,
|
|
22
|
+
143,
|
|
23
|
+
168,
|
|
24
|
+
69,
|
|
25
|
+
89,
|
|
26
|
+
109,
|
|
27
|
+
121,
|
|
28
|
+
30,
|
|
29
|
+
210,
|
|
30
|
+
227,
|
|
31
|
+
121,
|
|
32
|
+
202,
|
|
33
|
+
165,
|
|
34
|
+
27,
|
|
35
|
+
51,
|
|
36
|
+
109,
|
|
37
|
+
72,
|
|
38
|
+
137,
|
|
39
|
+
177,
|
|
40
|
+
21,
|
|
41
|
+
181,
|
|
42
|
+
16,
|
|
43
|
+
13,
|
|
44
|
+
73,
|
|
45
|
+
224,
|
|
46
|
+
173,
|
|
47
|
+
221,
|
|
48
|
+
34,
|
|
49
|
+
88,
|
|
50
|
+
32,
|
|
51
|
+
91,
|
|
52
|
+
168,
|
|
53
|
+
136,
|
|
54
|
+
147,
|
|
55
|
+
103,
|
|
56
|
+
1,
|
|
57
|
+
127,
|
|
58
|
+
55,
|
|
59
|
+
29,
|
|
60
|
+
87,
|
|
61
|
+
125,
|
|
62
|
+
39,
|
|
63
|
+
122,
|
|
64
|
+
30,
|
|
65
|
+
99,
|
|
66
|
+
48,
|
|
67
|
+
70,
|
|
68
|
+
154,
|
|
69
|
+
87,
|
|
70
|
+
95,
|
|
71
|
+
75,
|
|
72
|
+
164,
|
|
73
|
+
55,
|
|
74
|
+
172,
|
|
75
|
+
108,
|
|
76
|
+
77,
|
|
77
|
+
87,
|
|
78
|
+
108,
|
|
79
|
+
176,
|
|
80
|
+
24,
|
|
81
|
+
238,
|
|
82
|
+
159
|
|
83
|
+
],
|
|
84
|
+
"privateKey": "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgo7IMQ8STknlJFQkOxDsic8VZSIHd4n1Jss9odADmauahRANCAAQcWj7CFN+PqEVZbXke0uN5yqUbM21IibEVtRANSeCt3VuoiJNnAX83HVd9J3oeYzBGmldfS6Q3rGxNV2ywGO6f",
|
|
85
|
+
"credentialDbId": "1EdjdkZ9fMkqmiqAf2iRmNMP6QH5Cenz7auxXmGsLZY",
|
|
86
|
+
"signCount": 1
|
|
87
|
+
}
|