Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

masterenv's avatar

api login with passport

Hello, I have an api created to log into a web app and I need to consume it from another app, all this created in laravel, I provided the operation of the api in postman and insomnia and it works correctly, the path has two parameters: the username and the password, but I don't know how to consume it in the second web app. regards

0 likes
1 reply
martinbean's avatar

@masterenv You should not be passing usernames and passwords as part of URLs. This is massively insecure!

Instead, use Passport as it was intended: create a client for the other app, and allow that app to request tokens for your users.

Please or to participate in this conversation.