Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client/v3: clear auth token when encounter ErrInvalidAuthToken
Old etcdserver which have not apply pr of etcd-io#12165 will check auth token even if the request is an Authenticate request. If the client has a invalid auth token, it will not able to update it's token, since the Authenticate has a invalid auth token. This fix clear the auth token when encounter an ErrInvalidAuthToken to talk with old version etcd servers. Fix etcd-io#12385 with etcd-io#12165 and etcd-io#12264
- Loading branch information