My front end application is in Angular 2 and back-end API is developed in Laravel 5.4. I'm more fascinated towards JWT tokens and found that, laravel has in-built support through passport.
Questions:
- I can easily use password grant tokens for those 8 restricted page. But how do I give guest token to my Angular app for accessing those 2 pages
- How can I restrict guest user for accessing API features of 8 restricted page. (Or how do I check if visited user is guest or logged in user at API end)
Note: I cannot use Personal Access Tokens as it will allow my app to use any restricted API feature.
from Latest question asked on Laravel tag.
via Sahil Purav