I have a web api project where:
- some controller actions need a JWT authentication,
- some do not need a JWT authentication,
- some return different data depending on the validity of the JWT provided where the data only differs in one field's value.
The 1st one is easy as the JWT authentication middleware will handle it but how can I achieve the other 2?