@passlock/client 0.9.7 → 0.9.8
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/README.md +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -58,10 +58,10 @@ const passlock = new Passlock({ tenancyId, clientId })
|
|
|
58
58
|
|
|
59
59
|
// to register a new passkey, call registerPasskey(). We're using placeholders for
|
|
60
60
|
// the user data. You should grab this from an HTML form, React store, Redux etc.
|
|
61
|
-
const [email,
|
|
61
|
+
const [email, givenName, familyName] = ["jdoe@gmail.com", "John", "Doe"]
|
|
62
62
|
|
|
63
63
|
// Passlock doesn't throw but instead returns a union: result | error
|
|
64
|
-
const result = await passlock.registerPasskey({ email,
|
|
64
|
+
const result = await passlock.registerPasskey({ email, givenName, familyName })
|
|
65
65
|
|
|
66
66
|
// ensure Passlock didn't return an error
|
|
67
67
|
if (!PasslockError.isError(result)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@passlock/client",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.8",
|
|
4
4
|
"description": "Easy WebAuthn/FIDO Passkey authentication for your web apps. This library works with pretty much any frontend/backend stack including React/Next.js, Vue, SvelteKit etc - check out the tutorial",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"passkey",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@github/webauthn-json": "^2.1.1",
|
|
43
43
|
"effect": "3.0.3",
|
|
44
|
-
"@passlock/shared": "0.9.
|
|
44
|
+
"@passlock/shared": "0.9.8"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@tsconfig/node18": "^18.2.4",
|