Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
dagnelies committed Oct 4, 2023
1 parent 6001112 commit 55567c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion demos/playground.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ <h2 class="title">Registration</h2>
<option>preferred</option>
<option>discouraged</option>
</b-select>
<div class="hint">A "discoverable" credential can be selected using `authenticate` without providing credential IDs. Instead, a native pop-up will appear for user selection. This may have an impact on the "passkeys" user experience and syncing behavior of the key.</div>
<div class="hint">
A "discoverable" credential can be selected using `authenticate(...)` without providing credential IDs.
Instead, a native pop-up will appear for user selection.
This may have an impact on the "passkeys" user experience and syncing behavior of the key.
</div>
</b-field>

<b-field label="Timeout" horizontal>
Expand Down
5 changes: 3 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ function getAlgoName(num :NumAlgo) :NamedAlgo {
* 'both': prompt the user to choose between local or roaming device. The UI and user interaction in this case is platform specific.
* @param {boolean} [options.attestation=false] If enabled, the device attestation and clientData will be provided as Base64url encoded binary data.
* Note that this is not available on some platforms.
* @param {'discouraged'|'preferred'|'required'} [options.discoverable] If the credential is "discoverable", it can be selected using `authenticate` without providing credential IDs.
* A native pop-up will appear for user selection. This may have an impact on "passkeys" user experience and syncing behavior.
* @param {'discouraged'|'preferred'|'required'} [options.discoverable] A "discoverable" credential can be selected using `authenticate(...)` without providing credential IDs.
* Instead, a native pop-up will appear for user selection.
* This may have an impact on the "passkeys" user experience and syncing behavior of the key.
*/
export async function register(username :string, challenge :string, options? :RegisterOptions) :Promise<RegistrationEncoded> {
options = options ?? {}
Expand Down

0 comments on commit 55567c2

Please sign in to comment.