marcelweidum/filament-passkeys
Add passkey (WebAuthn) authentication to your Filament app via Spatie Laravel Passkeys. Includes migrations, routes, and a simple Panel plugin, with profile integration for managing user passkeys. Compatible with Filament v5 (3.x).
composer test # If tests exist in the package (unlikely; add your own)
npm run dev and verify Filament passkey UI components load.axios.create() defaults).axios.isCancel())./api/passkeys/verify).resources/css/filament/passkeys.css).composer update marcelweidum/filament-passkeys
npm update axios postcss # If managing these globally
POST /filament/passkeys/register).POST /filament/passkeys/login).# .github/workflows/test.yml
- run: php artisan test --filter PasskeyTest
Filament::registerPlugin(
PasskeyPlugin::make()
->registrationWidget(PasskeyRegistrationWidget::class)
);
// webpack.mix.js
mix.postCss('resources/css/filament/app.css', 'public/css', [
require('postcss-import'),
require('tailwindcss'),
]);
axios.defaults).CHANGELOG.md.// app/Providers/AppServiceProvider.php
public function boot()
{
\Log::channel('passkeys')->useStores([new \Monolog\Handler\StreamHandler(storage_path('logs/passkeys.log'))]);
}
npm run dev post-update.npm ls postcss to debug version conflicts.// tests/Feature/PasskeyApiTest.php
public function test_webauthn_attestation()
{
$response = $this->postJson('/api/passkeys/register', ['publicKey' => [...]]);
$response->assertCreated();
}
README.md to reflect dependency versions:
## Requirements
- Laravel 10+
- PHP 8.1+
- Axios ^1.16.0
- PostCSS ^8.5.13
How can I help you explore Laravel packages today?