Fixing usage of access token

The next lines need fixing:
If there is error in fetching access token, an ```IOException``` will be thrown. ->
If there is an error while fetching the access token, an ```IOException``` will be thrown.