I’m using Auth0 to handle authentication for one of my apps.
I’m using Angular and Laravel and I have successfully setup Auth0 on my front-end Angular application.
However the last remaining thing to do is to assign items in my database to the user ID of the Auth0 user and make sure only the items assigned to the logged in user are returned when consuming the classic get/index endpoint.
How do I do this in Angular and Laravel?
It seems I need to be able to get the user ID from the Auth0 Angular SDK and then pass that into the Angular service that consumes my own Laravel API. But how do I do this?