Skip to content

spatie/laravel-passkeys-app

Repository files navigation

Laravel Passkeys Demo app

This is a demo application to showcase the spatie/laravel-passkeys package which allows you to authenticate users using passkeys.

Support us

Installation

# 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 migrate

Usage

When 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.

Implementation details

The authenticate-passkeys component is being used in the login view.

The Passkeys Livewire component is being used on the dashboard view.

Documentation

All documentation on the package is available on our documentation site.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

This code is based on the Laracast course on passkeys by the amazing Luke Downing.

License

The MIT License (MIT). Please see License File for more information.

About

A demo app for the spatie/laravel-passkeys

Topics

Resources

Contributing

Stars

30 stars

Watchers

2 watching

Forks

Contributors

Languages