1 year ago

Passing the api_token in header when the user Log In

Posted 1 year ago by emfpc

So far I was able to understand the whole API thing in Laravel thanks to you guys. I'm able to see the information of the user in my controller if the user passes the api_token in the header; for testing reason in postman I copy and paste this information. I was wondering if theres is a way when the user (using Laravel log in feature) logs in and want to ender a route protected with middleware('auth:api') can pass the api_token to the header. if there is another way or approach will love to hear it. I'm working as a backend developer

Please sign in or create an account to participate in this conversation.