There are two ways to authorise: with or without PKCE.
And there are two places to update the config: https://github.com/search?q=repo%3Aspotify%2Fweb-api-examples%20yourClientIdGoesHere&type=code
Any chance you updated one config, but try to use another method?