Skip to content

Commit

Permalink
Update readme with client reference and challenge variable (passwordl…
Browse files Browse the repository at this point in the history
…ess-id#17)

you're right, that wasn't clear. Thanks for the improvement
  • Loading branch information
kevinsimper committed Jan 24, 2023
1 parent 9b11a20 commit 0f62134
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ Example call:
```js
import { client } from '@passwordless-id/webauthn'

const registration = await client.register("Arnaud", "a7c61ef9-dc23-4806-b486-2428938a547e", {
const challenge = "a7c61ef9-dc23-4806-b486-2428938a547e"
const registration = await client.register("Arnaud", challenge, {
"authenticatorType": "auto",
"userVerification": "required",
"timeout": 60000,
Expand Down Expand Up @@ -243,7 +244,8 @@ Example call:
```js
import { client } from 'webauthn'

const authentication = await webauthn.authenticate(["3924HhJdJMy_svnUowT8eoXrOOO6NLP8SK85q2RPxdU"], "56535b13-5d93-4194-a282-f234c1c24500", {
const challenge = "56535b13-5d93-4194-a282-f234c1c24500"
const authentication = await client.authenticate(["3924HhJdJMy_svnUowT8eoXrOOO6NLP8SK85q2RPxdU"], challenge, {
"authenticatorType": "auto",
"userVerification": "required",
"timeout": 60000
Expand Down

0 comments on commit 0f62134

Please sign in to comment.