Skip to content

Commit

Permalink
Swap fill order to prevent truncated caching from hexstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvano Allemekinders committed Nov 9, 2023
1 parent 34cecc6 commit e37168a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Eloquent/ManagesCredentialRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ public static function fromCredentialSource(CredentialSource $source)
{
return ($model = new static())->fill(
[
$model->getKeyName() => $source->publicKeyCredentialId,
'user_handle' => $source->userHandle,
'type' => $source->type,
'transports' => $source->transports,
'attestation_type' => $source->attestationType,
'trust_path' => $source->trustPath->jsonSerialize(),
'aaguid' => (string) $source->aaguid,
'public_key' => $source->publicKeyCredentialId,
'public_key' => $source->credentialPublicKey,
'counter' => $source->counter,
$model->getKeyName() => $source->publicKeyCredentialId,
]
);
}
Expand Down

0 comments on commit e37168a

Please sign in to comment.