Get Auth id of an API user

Posted 1 week ago by DigiProduct

How can I get the Auth:id of the authorised API user?

I'm using Laravel Passport ,and so the user is authorised for the API by the Token ...

But I want to return only the data that is "owned" by that userid ...

So, how can I get that userid when they access the the API with a token?

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