Hi I'm using Socialite to validate users when they log into the backend of my site and it's working well. Now I need to validate another type of user, which is not going to validate against the database. Is there a way to set the redirect url on runtime? So far it seems Socialite can only use a hardcoded url from the config.
is this helpful ?
public function redirect($provider,$redirectUrl,$scopes)
{
return Socialite::with($provider)->scopes($scopes)->redirectUrl($redirectUrl)->redirect();
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community