Closed parallels999 closed 1 year ago
This package is really not meant to be more than it currently is. It's pretty easy to make a helper that does what you need. Just check how I parse the token in the middleware and add that to a helper.
check how I parse the token in the middleware and add that to a helper
Yes, i already did that, but since that code is already there, it could be made available
Would any PR be accepted for that?
Look at this, BearerTokenValidator.php#L126-L131,
For example, I has
company_id
on private claims, and the middleware check works correctly, but I want to use the id to make queries with results only from that company, It would be useful to have a static property where the token is stored, and a helper, so we can get the claims from anywhere Example: