Bånder

PasskeyService
in package

Table of Contents

Methods

getAllowedCredentials()  : mixed
getPublicKeyCredentialByPasskey()  : PublicKeyCredential
Retrieves a PublicKeyCredential instance from a JSON string.
makePublicKeyCredentialCreationOptions()  : PublicKeyCredentialCreationOptions
Generates PublicKeyCredentialCreationOptions from a JSON string.

Methods

getAllowedCredentials()

public getAllowedCredentials(PublicKeyCredentialUserEntity $userEntity) : mixed
Parameters
$userEntity : PublicKeyCredentialUserEntity

getPublicKeyCredentialByPasskey()

Retrieves a PublicKeyCredential instance from a JSON string.

public getPublicKeyCredentialByPasskey(string $json) : PublicKeyCredential
Parameters
$json : string

A JSON string representing the public key credential.

Tags
throws
InvalidPasskey

If the provided JSON is not valid.

Return values
PublicKeyCredential

The deserialized public key credential object.

makePublicKeyCredentialCreationOptions()

Generates PublicKeyCredentialCreationOptions from a JSON string.

public makePublicKeyCredentialCreationOptions(string $passkeyOptionsJson) : PublicKeyCredentialCreationOptions
Parameters
$passkeyOptionsJson : string

A JSON string representing the passkey creation options.

Tags
throws
InvalidPasskeyOptions

If the provided JSON is not valid.

Return values
PublicKeyCredentialCreationOptions

The deserialized passkey creation options object.


        
On this page

Search results