collab / module-customer-passwordless-login
A Magento 2 module which provides service to allow customers to login without a password
Installs: 21
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- magento/framework: *
README
The Collab_CustomerPasswordLessLogin module allows You to use its service in order to create an account or login frontend user without the need of a password. Useful for integrations with 3rd party authenticatators like Google, Facebook and theirs services like Facebook Login, Google One Tap etc.
Basic usage
<?php ... use Collab\CustomerPasswordLessLogin\Service\LoginWithoutPassword; ... public function __construct( protected LoginWithoutPassword $loginWithoutPassword ) { } ... $this->loginWithoutPassword->login([ 'email' => $payload['email'], 'firstName' => $payload['given_name'], 'lastName' => $payload['family_name'] ]); ...
Service's login method accepts an array with the following keys:
- firstName
- lastName
Installation details
composer collab/module-customer-passwordless-login bin/magento setup:upgrade