public async Task <bool> IsTokenValid(SomeValidationContext context, string token) { // here you can check if the token received is valid return(true); }
public BearerAuthorizationHandler(SomeValidationContext thatYouCanInject) {