CredentialRepository ​
- Type
- Class
- Namespace
- craft\auth\passkeys
- Inherits
- craft\auth\passkeys\CredentialRepository
- Since
- 5.0.0
Passkey credential repository.
Public Methods ​
| Method | Description |
|---|---|
| findAllForUserEntity() | Finds all webauthn records for given user and returns an array of PublicKeyCredentialSources for their credential values. |
| findOneByCredentialId() | Finds a webauthn record in the database for given id and returns the PublicKeyCredentialSource for its credential value. |
| saveCredentialSource() | Saves credential source in the database |
| savedNamedCredentialSource() | Save credential source with name |
findAllForUserEntity() ​
Finds all webauthn records for given user and returns an array of PublicKeyCredentialSources for their credential values.
Arguments ​
$publicKeyCredentialUserEntity
findOneByCredentialId() ​
Finds a webauthn record in the database for given id and returns the PublicKeyCredentialSource for its credential value.
Arguments ​
$publicKeyCredentialId$checkOldUserHandle
saveCredentialSource() ​
Saves credential source in the database
Arguments ​
$publicKeyCredentialSource
savedNamedCredentialSource() ​
Save credential source with name