AmanSehgal
Honored Contributor III

Another way to update token is to use Git Credential API2.0

Check the documentation for endpoint update the credential.