So I've been trying to make a program that will let me change a minecraft accounts name using the API seen on https://wiki.vg/Mojang_API and to get the token required to change name : https://wiki.vg/Authentication
But i've been everytime getting the error "Unauthorized" or even"Current IP is not secured"
[media][media]and if i were to use a different account than the account i used above
[media]Which seems to work just fine [ NOTE : I made it change to "a" so it wouldnt actually change for testing purposes.
this is the code I made for the change name
Token must be authenticated with Minecraft.net, not the Authserver.
Current IP is not secured means you have failed to answer the security questions of the account, hence leaving your IP "unsecured"