I've got a case where in every request that goes to api there's property like
public Guid CompanyId {get; set;}
It is then checked with UserId from JWT token to check if user has access to that particular company.
I don't want that property to be in every call to the api. Is there a better way to approach that, like creating custom claim in JWT token?
It gets a bit more complicated cause users can have access to more that one company, so if I were to go with the custom claim, is there any way to refresh the token and change claim value in it?