0

I've implemented laravel socialite authentication and I'm trying to write a test to the login flow

I have the two functions: redirectToProvider and handleProviderCallback

public function redirectToProvider($provider)
{
    return Socialite::driver($provider)->redirect();
}

public function handleProviderCallback($provider)
{
   //
}

I have successfully written the test for the second method handleProviderCallback by using this gist and ajusting it for my need

what I need now is just how I call my route /login/github and redirects me to /login/github/callback

It's keep giving me 500 error

Thank you in advanced

m_m
  • 5
  • 1
  • 6

0 Answers0