Jun 25, 2019
0
Level 1
Web guards for views, using API authentication coming another Laravel App
So basically I'm trying to use a Laravel app (as front) to connect to another Laravel app (it's something centralized providing RESTful API), I already set up passport and I'm returning a token which is hashed and stored in cookies, only usable by the website. What I'm wondering is, how do I use said token to check as if it were a guard? I can't use either auth guards because they're checking locally (the database assigned to the application and user models), what I need is something that checks in an outside URI?
Please or to participate in this conversation.