Different Auth Guard

I've been trying to integrate Filament with Auth0.

I am using Auth0 Laravel SDK: https://github.com/auth0/laravel-auth0

And I did setup my auth.php:

Guard
'auth0' => [
    'driver' => 'auth0.guard',
    'provider' => 'auth0-provider',
],

Provider
'auth0-provider' => [
    'driver' => 'auth0.provider',
    'repository' => UserRepository::class,
],


config/filament.php
'auth' => [
    'guard' => env('FILAMENT_AUTH_GUARD', 'auth0'),
    'pages' => [
        'login' => \App\Filament\Auth\Login::class,
    ],
],


And I tweaked the login logic a little bit. However, the problem now is the return type from the Filament::auth() should be Illuminate\Contracts\Auth\Guard But Auth0 SDK returns Auth0\Laravel\Auth\Guard. Has anybody tried to switch the authentication logic to a tool like Auth0?
image.png
image.png
image.png
GitHub
Laravel SDK for Auth0 Authentication and Management APIs. - GitHub - auth0/laravel-auth0: Laravel SDK for Auth0 Authentication and Management APIs.
Was this page helpful?