You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm implementing webauthn in my website, my website is built on php7.2 and laravel version 5.6 and I'm using webauthn-lib version 3.3
When I'm trying to Authenticate the assertion response it requires object of PublicKeyCredentialRequestOptions, which when i try to create it is giving error.
Error message :
Declaration of Webauthn\PublicKeyCredentialRequestOptions::createFromString(string $data): Webauthn\PublicKeyCredentialRequestOptions must be compatible with Webauthn\PublicKeyCredentialOptions::createFromString(string $data): Webauthn\PublicKeyCredentialOptions
Version(s) affected
3.3
Description
I'm implementing webauthn in my website, my website is built on php7.2 and laravel version 5.6 and I'm using webauthn-lib version 3.3
When I'm trying to Authenticate the assertion response it requires object of PublicKeyCredentialRequestOptions, which when i try to create it is giving error.
Error message :
Declaration of Webauthn\PublicKeyCredentialRequestOptions::createFromString(string $data): Webauthn\PublicKeyCredentialRequestOptions must be compatible with Webauthn\PublicKeyCredentialOptions::createFromString(string $data): Webauthn\PublicKeyCredentialOptions
File:
/Users/username/Development/github/HBAM/vendor/web-auth/webauthn-lib/src/PublicKeyCredentialRequestOptions.php
How to reproduce
The error occurs when i try to create the object
try {
$challengeObj = new PublicKeyCredentialRequestOptions($challenge);
} catch (\Exception $ex) {
\Log::error($ex->getMessage(),[ 'trace' => $ex->getTraceAsString() ]);
}
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: