PasskeyCredential
PasskeyCredential
class PasskeyCredentialProperties
id
the credential ID
public string $idType: string
identity
the user it belongs to
public string $identityType: string
userHandle
the user handle (random, per user, never the identity)
public string $userHandleType: string
publicKey
the credential public key (COSE bytes)
public string $publicKeyType: string
algorithm
the key's COSE algorithm
public int $algorithmType: int
signCount
the last signature counter seen
public int $signCountType: int
transports
transports the browser reported (internal, hybrid, usb...)
public array $transportsType: array
aaguid
the authenticator model's AAGUID (16 bytes, all zero if unknown)
public string $aaguid = '"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"'Type: string
backupEligible
whether the credential can be synced (fixed for its lifetime)
public bool $backupEligibleType: bool
backupState
whether it was backed up/synced at last use
public bool $backupStateType: bool
uvInitialized
whether user verification was performed at registration
public bool $uvInitializedType: bool
name
a label the user chose
public string $nameType: string
createdAt
when it was registered (Unix time)
public int $createdAtType: int
lastUsedAt
when it was last used to log in (Unix time)
public int $lastUsedAtType: int
Methods
__construct
public __construct(string $id, string $identity, string $userHandle, string $publicKey, int $algorithm, int $signCount, array $transports, string $aaguid = '"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"', bool $backupEligible, bool $backupState, bool $uvInitialized, string $name, int $createdAt, int $lastUsedAt): voidParameters
| Parameter | Type | Description |
|---|---|---|
$id | string | the credential ID |
$identity | string | the user it belongs to |
$userHandle | string | the user handle (random, per user, never the identity) |
$publicKey | string | the credential public key (COSE bytes) |
$algorithm | int | the key's COSE algorithm |
$signCount | int | the last signature counter seen |
$transports | array | transports the browser reported (internal, hybrid, usb...) |
$aaguid | string | the authenticator model's AAGUID (16 bytes, all zero if unknown) |
$backupEligible | bool | whether the credential can be synced (fixed for its lifetime) |
$backupState | bool | whether it was backed up/synced at last use |
$uvInitialized | bool | whether user verification was performed at registration |
$name | string | a label the user chose |
$createdAt | int | when it was registered (Unix time) |
$lastUsedAt | int | when it was last used to log in (Unix time) |
key
public key(): COSEKeyReturns: Hazaar\Auth\WebAuthn\COSEKey
toArray
public toArray(): arrayReturns: array
fromArray
public fromArray(array $record): selfReturns: self
Parameters
| Parameter | Type | Description |
|---|---|---|
$record | array | a record made by Hazaar\Auth\WebAuthn\PasskeyCredential::toArray |
Generated by Hazaar API Doc Generator on Wed, 28 Oct 2026 08:43:30 +0000