This is a demo application to showcase the spatie/laravel-passkeys package which allows you to authenticate users using passkeys.
# clone the repo
git clone spatie/laravel-passkeys-app
# cd into the directory
cd laravel-passkeys-app
# install dependencies
composer install
npm install
# copy the .env file
cp .env.example .env
# generate the application key
php artisan key:generate
# run the migrations and seeder
php artisan migrateWhen using Valet, you should now be able to visit http://laravel-passkeys-app.test in your browser. If you're using a different local development environment, you may need to adjust the URL accordingly.
You can create a new user by visiting the /register route. After registering, you create a passkey. After that, try logging out and logging back in using the passkey.
The authenticate-passkeys component is being used in the login view.
The Passkeys Livewire component is being used on the dashboard view.
All documentation on the package is available on our documentation site.
Please review our security policy on how to report security vulnerabilities.
This code is based on the Laracast course on passkeys by the amazing Luke Downing.
The MIT License (MIT). Please see License File for more information.
