PHP code example of kwidoo / passport-multiauth

1. Go to this page and download the library: Download kwidoo/passport-multiauth library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kwidoo / passport-multiauth example snippets


   'strategies' => [
       'twilio' => [
           'class'    => \Kwidoo\MultiAuth\Services\TwilioService::class,
           'strategy' => \Kwidoo\MultiAuth\Services\OTPStrategy::class,
           'resolver' => \Kwidoo\MultiAuth\Resolvers\GeneralUserResolver::class,
       ],
       'email' => [
           'class'    => \Kwidoo\MultiAuth\Services\EmailService::class,
           'strategy' => \Kwidoo\MultiAuth\Services\OTPStrategy::class,
           'resolver' => \Kwidoo\MultiAuth\Resolvers\GeneralUserResolver::class,
       ],
       // ... or custom strategies
   ],
   
bash
   php artisan vendor:publish --provider="Kwidoo\MultiAuth\MultiAuthServiceProvider" --tag=config
   
bash
   php artisan vendor:publish --provider="Kwidoo\MultiAuth\MultiAuthServiceProvider" --tag=migrations
   php artisan vendor:publish --provider="Kwidoo\MultiAuth\MultiAuthServiceProvider" --tag=views
   
bash
   php artisan migrate