forked from passwordless-id/webauthn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
28 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
/node_modules | ||
/.vscode | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,16 +5,26 @@ A greatly simplified and opiniated wrapper to invoke the [webauthn protocol](htt | |
|
||
Check out the demo at https://passwordless.id/playground.html | ||
|
||
Installation/usage | ||
------------------ | ||
Installation / Usage | ||
-------------------- | ||
|
||
NPM: | ||
|
||
npm install @passwordless-id/webauthn | ||
```bash | ||
npm install @passwordless-id/webauthn | ||
``` | ||
|
||
```js | ||
import * as passwordless from '@passwordless-id/webauthn' | ||
``` | ||
|
||
Browser: | ||
|
||
<script src="https://unpkg.com/@passwordless-id/[email protected]/dist/passwordless-id.min.js"></script> | ||
```js | ||
<script type="module"> | ||
import * as passwordless from 'https://unpkg.com/@passwordless-id/webauthn@latest/dist/passwordless.min.js' | ||
</script> | ||
``` | ||
|
||
|
||
Registration | ||
|
@@ -71,9 +81,9 @@ Options | |
Notes | ||
----- | ||
|
||
Unlike the webauthn protocol, there are some significant differences. | ||
Unlike the [webauthn protocol](), there are some significant differences. | ||
|
||
First, some defaults are also different. Most notably: | ||
First, some defaults are different: | ||
|
||
- The `timeout` is one minute by default. | ||
- If the device can act as authenticator itself, it is preffered instead of asking which authenticator type to use. | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.