Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

gelin28's avatar

Auth0 , Laravel Spark Classic and Auth Model

Hi Everybody, We are trying to integrate Auth0 with Laravel Spark, but also in a way that standard stuff from Laravel Spark classic offers. Here a bit more details. https://github.com/auth0/laravel-auth0/issues/252

Basically when someone integrates Auth0 with pure Laravel, it works great . The Official tutorial is here Integrate Auth0 using steps from Tutorial https://auth0.com/docs/quickstart/webapp/laravel/01-login. But when we try to do the same steps in Laravel Spark (we have classic by the way) , the problem comes in the last point of CustomUserRepository. It appears the core issue we are facing is Spark Classic's user model type appears to extend the Illuminate\Foundation\Auth\User abstract type, which is incompatible with Illuminate\Contracts\Auth\Authenticatable that the library Laravel Auth0 relies upon. Have you maybe went this path already ? Could you maybe hint what would be right way to integrate the last step so that we keep all the functionality as it is?

0 likes
0 replies

Please or to participate in this conversation.