iMessage authentication error when logging into iCloud
I haven't been able to use my Apple ID to access FaceTime or iMessage on my MacBook Air. It keeps saying that "there was an error during authentication". I have a strong connection, my Mac is fully updated with High Sierra 10.13.4, and my firewall isn't the cause. I can log into my iCloud account on safari and on my iPhone so I'm not sure whats going on. I've already tried reseting the NVRAM.
MACBOOK AIR (13-INCH, 2017), iOS 11.4