Created
July 22, 2020 17:05
-
-
Save ssi-anik/1c07dda752b4218b991f53725b5284a8 to your computer and use it in GitHub Desktop.
A: jwt-auth with otp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
class AuthServiceProvider extends ServiceProvider | |
{ | |
public function register () { | |
$this->app['auth']->provider('otp-based-auth-provider', function ($app, array $config) { | |
return new MemberUserProvider(); | |
}); | |
} | |
public function boot () { | |
// | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment