I am trying to make this function in laravel jetstream projecet that I need to login to another website (ex. Facebook, Twitter) using the credentials (ex. email, password) of my logged-in or authenticated user. I am thinking on specifying the url in the , but I am not sure on how to get the data from my database and populate the form of another website and automatically loggedin my user.
The problem that I have is that I have to connect two websites that we made using the credentials (email, password) of one website and used those credentials to open another website, so when the user logged-in to website 1, the dashboard will open and will have a link for website 2 and if the user visited website 2, the user will automatically be logged in to website 2 using the credentials of website 1.
Is this possible using php or I need to use a library for this one? I have no idea on how to do this, is this possible? Thank you.