Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PublicKeyCredentialRequestOptions::createFromString is not compatible with PublicKeyCredentialOptions::createFromString(string $data) #658

Open
mohsin889 opened this issue Nov 6, 2024 · 0 comments

Comments

@mohsin889
Copy link

mohsin889 commented Nov 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant