Skip to content

Instantly share code, notes, and snippets.

@ssi-anik
Created July 22, 2020 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssi-anik/1c07dda752b4218b991f53725b5284a8 to your computer and use it in GitHub Desktop.
Save ssi-anik/1c07dda752b4218b991f53725b5284a8 to your computer and use it in GitHub Desktop.
A: jwt-auth with otp
<?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