PHP code example of moontechs / filament-webauthn
1. Go to this page and download the library: Download moontechs/filament-webauthn library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
moontechs / filament-webauthn example snippets
return [
'login_page_url' => '/webauthn-login',
'user' => [
'auth_identifier' => 'email', // column in users table with unique user id
],
'widget' => [
'column_span' => '',
],
'register_button' => [
'icon' => 'heroicon-o-key',
'class' => 'w-full',
],
'login_button' => [
'icon' => 'heroicon-o-key',
'class' => 'w-full',
],
'auth' => [
'relying_party' => [
'name' => env('APP_NAME'),
'origin' => env('APP_URL'),
'id' => env('APP_HOST', parse_url(env('APP_URL'))['host']),
],
'client_options' => [
'timeout' => 60000,
'platform' => '', // available: platform, cross-platform, or leave empty
'attestation' => 'direct', // available: direct, indirect, none
'user_verification' => '
bash
php artisan vendor:publish --tag="filament-webauthn-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="filament-webauthn-config"
bash
php artisan vendor:publish --tag="filament-webauthn-views"
bash
php artisan vendor:publish --tag="filament-webauthn-translations"