I published a package and logged into the wrong account. I corrected the uploaders by using
flutter packages pub uploader add <correct email>
flutter packages pub uploader remove <incorrect email>
But now when I try to push an update I am unauthorized because I'm still logged in as the incorrect email.
There should be a file
~/.pub-cache/credentials.json
that holds your current authentication info.
If you remove that you should be requested to login again.
Update
A pub logout
command was just added https://github.com/dart-lang/pub/pull/2035
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With