Skip to main content
Version: v1

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:

  1. Import the required types and functions from the SDK
import {Embedded} from '@beyondidentity/bi-sdk-js';
  1. Initialize the SDK
const embedded = await Embedded.initialize();

Parameters​

ParameterTypeDescription
urlstringRequired. 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);
}