Auth0 sdk laravel not working with custom user repository

I have a project on laravel 10, and we are trying to implement Laravel SDK for Auth0 authentication (7.9.1), we have followed the documentation and installed with composer. I added a custom user repository as mentioned in the documentation and used an example for the eloquent model laravel-auth0/docs/ at main · auth0/laravel-auth0 · GitHub , but this has a problem, after login, this returns:

Call undefined method App\Models\User::where()

We changed the extensions and implementation to solve this problem, but this after the login callback stays in an infinite loop and nothing works for us. any suggestions for this? regarding the implementation of the custom user repository.