StorePasskey
class StorePasskey
Traits
Methods
void
dispatchIfListening(string $eventClass, Closure $event)
Dispatch the given event if listeners are registered.
from
DispatchesEvents
__invoke(Authenticatable $user, string $name, PublicKeyCredential $credential, PublicKeyCredentialCreationOptions $options)
Validate and store a passkey for the user.
AuthenticatorAttestationResponse
getResponse(PublicKeyCredential $credential)
Get the authenticator attestation response from the credential.
CredentialRecord
validate(AuthenticatorAttestationResponse $response, PublicKeyCredentialCreationOptions $options)
Validate the credential and return the source.
string
hostFromOptions(PublicKeyCredentialCreationOptions $options)
Get the relying party ID stored in the registration options.
createPasskey(PasskeyUser $user, string $name, CredentialRecord $source)
Create the passkey record for the user.
Details
in
DispatchesEvents at line 16
protected void
dispatchIfListening(string $eventClass, Closure $event)
Dispatch the given event if listeners are registered.
at line 31
Passkey
__invoke(Authenticatable $user, string $name, PublicKeyCredential $credential, PublicKeyCredentialCreationOptions $options)
Validate and store a passkey for the user.
at line 60
protected AuthenticatorAttestationResponse
getResponse(PublicKeyCredential $credential)
Get the authenticator attestation response from the credential.
at line 72
protected CredentialRecord
validate(AuthenticatorAttestationResponse $response, PublicKeyCredentialCreationOptions $options)
Validate the credential and return the source.
at line 86
protected string
hostFromOptions(PublicKeyCredentialCreationOptions $options)
Get the relying party ID stored in the registration options.
at line 100
Passkey
createPasskey(PasskeyUser $user, string $name, CredentialRecord $source)
Create the passkey record for the user.