Mostly we are using social media as part of our authentication module which we can get credential from them. Laravel Socialite come to be solution for this part and makes authentication with social media easier.
This is the basic flow on Socialite, we just redirect from our website to social media’s authentication page.
Similar with the flow before, the difference just we are as API provider that provide redirect to social media authentication page and received auth result.
Some mobile apps have they own library to authentication with social media (i.e React Native Google Signin), but the problem is how to integrate social media auth with our system.