PHPackages                             jeffersongoncalves/filament-multifactor-passkeys - 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. jeffersongoncalves/filament-multifactor-passkeys

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

jeffersongoncalves/filament-multifactor-passkeys
================================================

Filament 5 multi-factor authentication via WebAuthn passkeys, powered by spatie/laravel-passkeys.

2.0.0(2mo ago)6911[2 PRs](https://github.com/jeffersongoncalves/filament-multifactor-passkeys/pulls)2MITPHPPHP ^8.2CI passing

Since May 4Pushed 1mo agoCompare

[ Source](https://github.com/jeffersongoncalves/filament-multifactor-passkeys)[ Packagist](https://packagist.org/packages/jeffersongoncalves/filament-multifactor-passkeys)[ Docs](https://github.com/jeffersongoncalves/filament-multifactor-passkeys)[ GitHub Sponsors](https://github.com/jeffersongoncalves)[ RSS](/packages/jeffersongoncalves-filament-multifactor-passkeys/feed)WikiDiscussions 2.x Synced 3w ago

READMEChangelog (2)Dependencies (8)Versions (6)Used By (2)

[![Filament Multifactor Passkeys](https://raw.githubusercontent.com/jeffersongoncalves/filament-multifactor-passkeys/2.x/art/jeffersongoncalves-filament-multifactor-passkeys.png)](https://raw.githubusercontent.com/jeffersongoncalves/filament-multifactor-passkeys/2.x/art/jeffersongoncalves-filament-multifactor-passkeys.png)

Filament Multifactor Passkeys
=============================

[](#filament-multifactor-passkeys)

[![Latest Version on Packagist](https://camo.githubusercontent.com/08a890e7b8a129f6996e8dcf128df8b03550c3dc6c3526716e9c01f7caa4dad4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d6d756c7469666163746f722d706173736b6579732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeffersongoncalves/filament-multifactor-passkeys)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/49436218e23d26f95155377166a20489b7f9742aad545e8c95a76ab93263dcdd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d6d756c7469666163746f722d706173736b6579732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d322e78266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/jeffersongoncalves/filament-multifactor-passkeys/actions?query=workflow%3A%22Fix+PHP+code+styling%22+branch%3A2.x)[![Total Downloads](https://camo.githubusercontent.com/d92e2ea8a9574f1524551f9cd6ac75269fda4bffc1cec919a7b53120cb464d9e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d6d756c7469666163746f722d706173736b6579732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeffersongoncalves/filament-multifactor-passkeys)[![License](https://camo.githubusercontent.com/51e796397ceec6a65ea1c34486877f15fc6a1b12ba56091aade8709b0255b482/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d6d756c7469666163746f722d706173736b6579732e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Multi-factor authentication for Filament panels using WebAuthn passkeys, powered by [`spatie/laravel-passkeys`](https://spatie.be/docs/laravel-passkeys).

Compatibility
-------------

[](#compatibility)

BranchFilamentLaravelPHPTag format`1.x`v411 / 12^8.2`1.x.y``2.x`v512 / 13^8.2`2.x.y`Installation
------------

[](#installation)

Install the package via composer:

```
composer require jeffersongoncalves/filament-multifactor-passkeys
```

Publish and run the migrations from `spatie/laravel-passkeys`:

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

Publish the `spatie/laravel-passkeys` config (optional, to tweak relying party, allowed origins, etc.):

```
php artisan vendor:publish --tag="passkeys-config"
```

Publish this package's config (optional):

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

Usage
-----

[](#usage)

### 1. Prepare your User model

[](#1-prepare-your-user-model)

Add the Spatie `InteractsWithPasskeys` trait and implement the package's `HasPasskeyAuthentication` contract (which extends Spatie's `HasPasskeys` interface):

```
use Filament\Models\Contracts\FilamentUser;
use Illuminate\Foundation\Auth\User as Authenticatable;
use JeffersonGoncalves\Filament\MultiFactorPasskeys\Contracts\HasPasskeyAuthentication;
use Spatie\LaravelPasskeys\Models\Concerns\InteractsWithPasskeys;

class User extends Authenticatable implements FilamentUser, HasPasskeyAuthentication
{
    use InteractsWithPasskeys;

    public function hasPasskeyAuthentication(): bool
    {
        return $this->passkeys()->exists();
    }

    // ...
}
```

### 2. Register the MFA provider in your panel

[](#2-register-the-mfa-provider-in-your-panel)

In your `PanelProvider`, register `PasskeyAuthentication` in the `multiFactorAuthentication()` array. To also expose a "Sign in with a passkey" button on the login screen, register the plugin as well:

```
use Filament\Panel;
use JeffersonGoncalves\Filament\MultiFactorPasskeys\MultiFactorPasskeysPlugin;
use JeffersonGoncalves\Filament\MultiFactorPasskeys\PasskeyAuthentication;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->multiFactorAuthentication([
            PasskeyAuthentication::make(),
        ])
        ->plugin(MultiFactorPasskeysPlugin::make());
}
```

That's it. The MFA section in the user profile page now shows a "Passkey verification" entry with **Set up** / **Turn off** buttons. The plugin also injects a passkey login button after the standard login form, allowing users to authenticate without typing email/password. After registering a passkey, the next login can use it directly.

> The package auto-registers Spatie's `Route::passkeys()` macro (under the `web` middleware group) so the login button works out of the box. If you've already registered them yourself, the auto-registration is skipped.

### 3. Customising the redirect URL

[](#3-customising-the-redirect-url)

By default, after a successful registration or assertion the user is redirected to the current panel home (`Filament::getCurrentPanel()->getUrl()`). To override:

```
PasskeyAuthentication::make()
    ->redirectUrlUsing(fn () => route('dashboard'));
```

You can also set a static URL via `config/filament-multifactor-passkeys.php`:

```
return [
    'redirect' => '/dashboard',
];
```

How it works
------------

[](#how-it-works)

This package is a thin Filament adapter on top of `spatie/laravel-passkeys`. The WebAuthn ceremony (challenge generation, browser API, attestation/assertion verification, persistence) is fully handled by Spatie's package and its Blade components (`` and ``), which are embedded inside Filament modals and the MFA challenge schema.

- **Set up** opens a Filament modal that renders ``
- **Disable** removes all of the user's passkeys via `$user->passkeys()->delete()`
- **Login challenge** renders ``

Development
-----------

[](#development)

```
# Static analysis
composer analyse

# Code style
composer format

# Tests
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Jefferson Gonçalves](https://github.com/jeffersongoncalves)
- [Spatie](https://github.com/spatie/laravel-passkeys) — for the underlying WebAuthn implementation
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance89

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

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

4

Last Release

81d ago

Major Versions

1.x-dev → 2.x-dev2026-05-04

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/411493?v=4)[Jefferson Gonçalves](/maintainers/jeffersongoncalves)[@jeffersongoncalves](https://github.com/jeffersongoncalves)

---

Top Contributors

[![jeffersongoncalves](https://avatars.githubusercontent.com/u/411493?v=4)](https://github.com/jeffersongoncalves "jeffersongoncalves (21 commits)")

---

Tags

2faauthenticationfido2filamentfilament-multifactor-passkeysfilament-pluginjeffersongoncalveslaravelmfamulti-factorpasskeypasskeystwo-factorwebauthnlaravelAuthentication2fatwo-factorFIDO2webauthnfilamentfilament-pluginjeffersongoncalvesMFApasskeypasskeysmulti-factorfilament-multifactor-passkeys

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/jeffersongoncalves-filament-multifactor-passkeys/health.svg)

```
[![Health](https://phpackages.com/badges/jeffersongoncalves-filament-multifactor-passkeys/health.svg)](https://phpackages.com/packages/jeffersongoncalves-filament-multifactor-passkeys)
```

###  Alternatives

[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

84215.9k9](/packages/stephenjude-filament-two-factor-authentication)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.8k](/packages/rawilk-profile-filament-plugin)[marcelweidum/filament-passkeys

Use passkeys in your filamentphp app

6649.5k2](/packages/marcelweidum-filament-passkeys)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

121256.9k1](/packages/ellaisys-aws-cognito)[backstage/mails

View logged mails and events in a beautiful Filament UI.

16121.5k](/packages/backstage-mails)[caresome/filament-auth-designer

Transform Filament's default auth pages into stunning, brand-ready experiences

4244.3k3](/packages/caresome-filament-auth-designer)

PHPackages © 2026

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