Download the PHP package m1guelpf/laravel-fastlogin without Composer
On this page you can find all versions of the php package m1guelpf/laravel-fastlogin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download m1guelpf/laravel-fastlogin
More information about m1guelpf/laravel-fastlogin
Files in m1guelpf/laravel-fastlogin
Package laravel-fastlogin
Short Description Allow your users to login with FaceID/TouchID
License MIT
Homepage https://github.com/m1guelpf/laravel-fastlogin
Informations about the package laravel-fastlogin
Allow your users to login with FaceID/TouchID
Allow your users to register physical authentication devices (FaceID or TouchID on iPhones & macs, fingerprint on Android, Hello on Windows and USB keys) to skip entering their login credentials.
Installation
You can install the package via composer:
You'll then need to add the \M1guelpf\FastLogin\Models\Concerns\CanFastLogin trait to your user model and migrate your database by running php artisan migrate.
Usage
This package takes care of everything you need on the backend. To make our life easier on the frontend, we'll be using @web-auth/webauthn-helper and js-cookie. You can install them by running yarn add @web-auth/webauthn-helper js-cookie.
To get started, you need to have the user register a new credential. You can do so by presenting them with a modal when they login, or by adding the option to their settings page.
Note: Due to Apple's restrictions, you can only call the creation function after a user gesture, that is, the function needs to be invoked in an user-generated event (like a "click" event).
Then, on the login page, you should check if the user has a credential saved (you can do so by calling the $request->hasCredential() method) and, if so, displaying a button to sign in using FastLogin.
Note: Due to Apple's restrictions, you can only call the login function after a user gesture, that is, the function needs to be invoked in an user-generated event (like a "click" event).
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Miguel Piedrafita
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-fastlogin with dependencies
illuminate/contracts Version ^9.0
illuminate/database Version ^9.0
illuminate/http Version ^9.0
illuminate/support Version ^9.0
illuminate/validation Version ^9.0
nyholm/psr7 Version *
psr/http-message Version *
symfony/psr-http-message-bridge Version *
web-auth/webauthn-lib Version ^4.0