Update Composer

After updating my GitHub personal access token my build is failing when I run composer with this error:
Your github oauth token for github.com contains invalid characters: “****************************************”
CircleCI shows that I am running Composer v1.6.5 and I need to upgrade to v1.10.21. I have upgraded my local machine but how do I upgrade the version of Composer running on CircleCI ?