PHPackages                             moontechs/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. moontechs/filament-webauthn

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

moontechs/filament-webauthn
===========================

Filament webauthn sign in and registration

0.1.8(3y ago)14337[1 issues](https://github.com/moontechs/filament-webauthn/issues)MITPHPPHP &gt;=8.0

Since Oct 23Pushed 3y agoCompare

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

READMEChangelogDependencies (14)Versions (10)Used By (0)

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

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/e6b2cbe6bfe1f7073c0f20cc2a0b7ebb99ab516db31c3603515a179bdd671a8c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f6f6e74656368732f66696c616d656e742d776562617574686e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/moontechs/filament-webauthn)[![GitHub Tests Action Status](https://camo.githubusercontent.com/da5fdf6a0c0d671b6e9462b7bc61764775492159e4e12775652b24e3790f2daa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f6f6e74656368732f66696c616d656e742d776562617574686e2f2e6769746875622f776f726b666c6f77732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e)](https://github.com/moontechs/filament-webauthn/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/90b56368c0ee96edd0debbd2920741ed786124096b62a8bdd57aa752d511a33d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f6f6e74656368732f66696c616d656e742d776562617574686e2f2e6769746875622f776f726b666c6f77732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e)](https://github.com/moontechs/filament-webauthn/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/938b98eaa4080384a16454abc979edfc0d28a8549de25857b07e609435683807/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f6f6e74656368732f66696c616d656e742d776562617574686e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/moontechs/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 moontechs/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',
    '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

26

—

LowBetter than 43% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

9

Last Release

1292d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/60574a1638aef5279e9547cc7f44d28f6017ad4e056c92056c6653f42d3d034d?d=identicon)[mkoziy](/maintainers/mkoziy)

---

Top Contributors

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

---

Tags

2fa2factorfidofido2filamentfilament-pluginfilamentphplaravellaravel-filamentphprelying-partytwo-factor-authenticationwebauthnlaravelfidowebauthnmoontechsfilament-webauthn

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[dutchcodingcompany/filament-socialite

Social login for Filament through Laravel Socialite

213914.9k9](/packages/dutchcodingcompany-filament-socialite)[spatie/laravel-login-link

Quickly login to your local environment

4381.2M1](/packages/spatie-laravel-login-link)[ryangjchandler/laravel-cloudflare-turnstile

A simple package to help integrate Cloudflare Turnstile.

438896.6k2](/packages/ryangjchandler-laravel-cloudflare-turnstile)

PHPackages © 2026

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