Closed tobz-nz closed 1 year ago
oh... is register()
for existing logged in users and login()
for new users?
That's ... confusing.
or have I got it wrong?
It's only for existing users. You can register them beforehand or even using the same data being sent as part of the Registration, using the provided tools.
Otherwise, the Attestation (registration of device) won't work because there is no User to link the public key.
@DarkGhostHunter Sorry - really struggling to understand how this works - how would I create the user at the same time as registration?
Fetch the registration info in a separate form. Once is created, albeit not confirmed, fetch the device registration.
This is an issue tracker btw, if you need help on that you're on wrong track.
PHP & Platform
8.2.2
Database
No response
Laravel version
10.13.5
Have you done this?
Expectation
When calling
new WebAuthn().register()
the request to/webauthn/register/options
should succeed.Description
But is does not:
Reproduction
On a Fresh install,
update vite.config.js
add
WebAuthn::routes();
toroutes/web.php
,then create a page like:
load the page page and click the button. 💥
Stack trace & logs
No response