Last updated 3 years ago
Was this helpful?
The easiest way to create a Webauthn Server is to use the class Webauthn\Server.
Webauthn\Server
<?php use Webauthn\Server; use Webauthn\PublicKeyCredentialRpEntity; $rpEntity = new PublicKeyCredentialRpEntity( 'Webauthn Server', 'my.domain.com' ); $publicKeyCredentialSourceRepository = …; //Your repository here. Must implement Webauthn\PublicKeyCredentialSourceRepository $server = new Server( $rpEntity $publicKeyCredentialSourceRepository );
That’s it!
You can now or authenticate your users.