isBindPasskeyUrl
Validates that a URL is able to be used by the bindPasskey function.
Dependencies​
The isBindPasskeyUrl function requires the Beyond Identity Javascript SDK.
npm install @beyondidentity/bi-sdk-js
Prerequisites​
Before making a call to isBindPasskeyUrl, you must complete the following prerequisite calls:
- Import the required types and functions from the SDK
import {Embedded} from '@beyondidentity/bi-sdk-js';
- Initialize the SDK
const embedded = await Embedded.initialize();
Parameters​
| Parameter | Type | Description | 
|---|---|---|
| url | string | Required. Url to be validated as Beyond Identity passkey binding url. | 
Returns​
Returns a boolean.
Examples​
Example: Call bindPasskey after validating URL​
if (await embedded.isBindPasskeyUrl(passkeyBindingLink)) {
      let result = await embedded.bindPasskey(passkeyBindingLink);
}