How to get through it t

I found out a while ago my husband was having an emotional affair. We decided to work through it & change a lot of our relationship that wasn’t working. My question is how do you get through it, how can you trust again?