Add the ability to add a hardware based two-factor authentication via a security key, fingerprint or biometric data. Using WebAuthn as a second factor of authentication can help your users better secure their accounts on your application. For more info on WebAuthn, please check out this guide.
For more documentation, please visit the docs.
You can install the package via composer:
composer require rawilk/laravel-webauthn
You can publish and run the migrations with:
php artisan vendor:publish --tag="webauthn-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="webauthn-config"
You can view the default configuration here: https://github.com/rawilk/laravel-webauthn/blob/main/config/laravel-webauthn.php
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review my security policy on how to report security vulnerabilities.
This package is heavily inspired from Larapass and asbiin/laravel-webauthn.
Since the v1.0.1
patch, a considerable amount of the JavaScript portion of this package has been sourced from the SimpleWebAuthn package made by Matthew Miller. His copyright has been added to the license file, and copyright notices have been placed in JS files where the code is extremely close to what his is.
This package aims to provide only the bare necessities required to utilize WebAuthn in your application, which provides the freedom to incorporate it into your project based on your own needs and desires. If you're looking for a more complete solution, consider one of these alternatives:
This package is not affiliated with, maintained, authorized, endorsed or sponsored by Laravel or any of its affiliates.
The MIT License (MIT). Please see License File for more information.