Angular 4 - API Authentication - 401 Unauthorized for URL

Thank you João @jmangelo.

I had: scope: ‘openid profile read:message’

Which needed to be ‘openid profile read:messages’

In the auth.service.ts file.