Use access token for authentication.
Better error handling.