RESTful API Authentication

I have my working RESTful API and decided to enable HttpBasicAuth Authentication following the 2.0 Guide. Everything works fine on my local machine (using a accessToken) but when I deploy to my production server the authentication keeps failing. I added some logging to the findIdentityByAccessToken method and I’m getting the following error from the server


[yii\web\HttpException:401] exception 'yii\web\UnauthorizedHttpException' with message 'You are requesting with an invalid credential.'

Anyone have any ideas as to why this would work fine on my local development machine but not on production server. (I should mention that my production server is a godaddy shared hosting linux)