[close #8267] Fix get_access_token.