PHPackages                             sebastiancx/filament-webauthn - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. sebastiancx/filament-webauthn

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

sebastiancx/filament-webauthn
=============================

Filament webauthn sign in and registration

v0.0.3-stable(2y ago)1522MITPHPPHP ^8.1

Since Jun 24Pushed 2y agoCompare

[ Source](https://github.com/sebastiancx/filament-webauthn)[ Packagist](https://packagist.org/packages/sebastiancx/filament-webauthn)[ Docs](https://github.com/sebastiancx/filament-webauthn)[ RSS](/packages/sebastiancx-filament-webauthn/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (12)Versions (6)Used By (0)

Filament Webauthn Authentication (FIDO)
=======================================

[](#filament-webauthn-authentication-fido)

[![Supported PHP Version 8.1](https://camo.githubusercontent.com/3352bb3140bc95d4ae67c630ee10df4e3e464d79d5a9aa496b958965384553b0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f382e312d626c75653f7374796c653d666c61742d737175617265266c6162656c3d537570706f7274656425323050485025323056657273696f6e)](https://camo.githubusercontent.com/3352bb3140bc95d4ae67c630ee10df4e3e464d79d5a9aa496b958965384553b0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f382e312d626c75653f7374796c653d666c61742d737175617265266c6162656c3d537570706f7274656425323050485025323056657273696f6e)[![Supported FilamentPHP Version 2.0](https://camo.githubusercontent.com/40ca5cc6ae1752efe71d8bbf79f7c13ed9d349721dcd3c790012e885918fb6d9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f322e302d7265643f7374796c653d666c61742d737175617265266c6162656c3d537570706f7274656425323046696c616d656e7450485025323025323056657273696f6e)](https://camo.githubusercontent.com/40ca5cc6ae1752efe71d8bbf79f7c13ed9d349721dcd3c790012e885918fb6d9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f322e302d7265643f7374796c653d666c61742d737175617265266c6162656c3d537570706f7274656425323046696c616d656e7450485025323025323056657273696f6e)[![Latest Version on Packagist](https://camo.githubusercontent.com/8640adcf28ab9e57d1add15dad16eba4ab966e26de0ae1ad2cc645acc322e64c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73656261737469616e63782f66696c616d656e742d776562617574686e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sebastiancx/filament-webauthn)[![Total Downloads](https://camo.githubusercontent.com/4ec335c67cc89a9fb507e9fbf5b01697d8133a125d6d81aea6ab1b0ac542db36/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73656261737469616e63782f66696c616d656e742d776562617574686e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sebastiancx/filament-webauthn)

Passwordless login for your Filament app. Web Authentication server-side and front-end components.

The package has the following components:

- registration button and widget
- login form extension to redirect to the webauthn login page
- separate route and page with webauthn login form

Should work with HTTPS and not localhost only.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require sebastiancx/filament-webauthn
```

You should publish and run the migrations with:

```
php artisan vendor:publish --tag="filament-webauthn-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="filament-webauthn-config"
```

This is the contents of the published config file:

```
return [
    'login_page_url' => '/webauthn-login',
    'webauthn_layout' => 'filament::components.layouts.card',
    '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' => 'required', // available: required, preferred, discouraged
        ],
    ],
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="filament-webauthn-views"
```

You can publish the translation file with:

```
php artisan vendor:publish --tag="filament-webauthn-translations"
```

Usage
-----

[](#usage)

- Install the package.
- Publish migrations and migrate.

### Registration widget

[](#registration-widget)

Only signed-in users can register a device to be able to sign in to use it in the future.

- Register `Moontechs\FilamentWebauthn\Widgets\WebauthnRegisterWidget::class` widget. Add it to the `widgets.register` array of the Filament config.

[![widget](images/widget.png?raw=true)](images/widget.png?raw=true)

#### Customization

[](#customization)

- Publish the config file
- `widget.column_span` - widget width ([docs](https://filamentphp.com/docs/2.x/admin/dashboard/getting-started#customizing-widget-width))

### Registration button (without widget)

[](#registration-button-without-widget)

- Add `` in any view.

#### Customization

[](#customization-1)

- Publish the config file
- `register_button.icon` - choose any available icon
- `register_button.class` - add more classes or change the default one

### Redirect to the login page button

[](#redirect-to-the-login-page-button)

- Publish Filament login page view `php artisan vendor:publish --tag=filament-views`
- Add `` in the end of the login form.

If you didn't want to use this button, you can use a simple redirect to a named route `filament-webauthn.login`.

[![redirect to login page](images/reditect-to-login-page.png?raw=true)](images/reditect-to-login-page.png?raw=true)

### Login form

[](#login-form)

#### Customization

[](#customization-2)

- Publish the config file
- `login_button.icon` - choose any available icon
- `login_button.class` - add more classes or change the default one

[![login](images/login.png?raw=true)](images/login.png?raw=true)

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [Michael Kozii](https://github.com/mkoziy)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Total

5

Last Release

1079d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a1f67124e988b060bf7da9cb098d5aa7e2623beb5c98078ad61e27a4bcc9b91e?d=identicon)[sebastiancx](/maintainers/sebastiancx)

---

Top Contributors

[![mkoziy](https://avatars.githubusercontent.com/u/3823545?v=4)](https://github.com/mkoziy "mkoziy (26 commits)")[![SebastianUhlig](https://avatars.githubusercontent.com/u/25252089?v=4)](https://github.com/SebastianUhlig "SebastianUhlig (15 commits)")

---

Tags

laravelfidowebauthnmoontechsfilament-webauthnsebastiancx

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/sebastiancx-filament-webauthn/health.svg)

```
[![Health](https://phpackages.com/badges/sebastiancx-filament-webauthn/health.svg)](https://phpackages.com/packages/sebastiancx-filament-webauthn)
```

###  Alternatives

[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[stephenjude/filament-debugger

About

104162.2k2](/packages/stephenjude-filament-debugger)[croustibat/filament-jobs-monitor

Background Jobs monitoring like Horizon for all drivers for FilamentPHP

274327.2k9](/packages/croustibat-filament-jobs-monitor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
