I'm using Laravel to create an API. Then I want another Laravel instance to authenticate users using the api.
So my api contains all the users. The client doesn't know anything. I want to have a form (just username and password) and send that data to the api and if the user exists, log in to the client.
I have read the docs about laravel passport but I don't really get how I should use it from the client side. Can anyone explain to me how I can check if a user exists in my api and keep the user logged in from my api?