I have used Socialite to allow social media login to my site using Facebook, Twitter, Google, or Linkedin. Everything works as expected for all of the providers, except for Google.
If it is a user's first time accessing my site with their Google credentials, I am getting the following error on the callback:
Type error: Argument 1 passed to Illuminate\Auth\SessionGuard::login() must implement interface Illuminate\Contracts\Auth\Authenticatable, null given
Yet everything is working fine for all other providers and seems to work fine if the user revisits my site and attempts to login using Google once again (once their data is in my DB, they seem to be fine to login without a hitch).
Within my User model, I am using use Illuminate\Foundation\Auth\User as Authenticatable
Any clue what I can do to remedy this?