public Task RemoveGrant(PersistedGrant grant) { State.ByClientId.Remove(grant.ClientId); State.ByClientIdAndType.Remove(new Tuple <string, string>(grant.ClientId, grant.Type)); return(WriteStateAsync()); }