Laragear / WebAuthn

Authenticate users with Passkeys: fingerprints, patterns and biometric data.
MIT License
308 stars 37 forks source link

POST /webauthn/register 422 at webauthn.js:159 #19

Closed fidelisepeter closed 2 years ago

fidelisepeter commented 2 years ago

HELP

Please i am trying to use webauthn in my app i had to upgrade to laravel 9 to user Laragear/WebAuthn because i was unable to set up Larapass and i can't create any issue there.

Wel Successfull Set WebAuthn but having Issue registering Device... I get 422 Error Code

Actually need Help is not a bug

Bubka commented 2 years ago

Hi,

Until PR #20 is merged a workaround is to duplicate the webauthn config array like this:

return [
    'relying_party' => [
        'name' => env('WEBAUTHN_NAME', config('app.name')),
        'id'   => env('WEBAUTHN_ID'),
    ],

    'relaying_party' => [
        'id'   => env('WEBAUTHN_ID'),
    ],
]

This way whatever the config array the package calls, there is always some values returned.

fidelisepeter commented 2 years ago

@Bubka Thanks I tried that I still get same error I posted on Stackoverflow I wish this will be solved

DarkGhostHunter commented 2 years ago

Fixed by #20