create temporary token for api authorization

This commit is contained in:
Geriano
2022-07-29 21:49:43 +07:00
parent 09717c078d
commit cda5225090
7 changed files with 158 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Providers;
use Illuminate\Auth\Events\Login;
use Illuminate\Auth\Events\Logout;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
@@ -21,8 +22,13 @@ class EventServiceProvider extends ServiceProvider
],
Login::class => [
\App\Listeners\CreateTemporaryToken::class,
\App\Listeners\SaveUserLoginIpBrowserAndPlatform::class,
],
Logout::class => [
\App\Listeners\DeleteTemporaryToken::class,
],
];
/**