I am trying to use laravel socialite for multiauth system. But the problem is there is only one oAuth available in services.php for google . which is redirecting only one callback URL. For Example I have two type of users admin and customer.
where I can give callback URL for customer?
I tried to make new oAuth inside services.php with name google2.
'google' => [
'client_id' => 'Google ID,
'client_secret' => 'google secret',
'redirect' => 'http://localhost:8000/admin/google/callback',
]
'google2' => [
'client_id' => 'Google ID,
'client_secret' => 'google secret',
'redirect' => 'http://localhost:8000/customer/google/callback',
]
I want to login in both type of user with google account