Problems publishing a new library version

Hi,

I am trying to update a library (PlatformIO Registry) but I am facing problems with the pio terminal…

PS C:\Users\jcbsk\Documents\Repositories\repo > pio pkg publish .pio\libdeps\micro\tact
Preparing a package...
AccountNotAuthorized: You are not authorized! Please log in to PlatformIO Account.

I tried logging in

PS C:\Users\jcbsk\Documents\Repositories\repo > pio account login -u jcsb1994 -p dontlookimnaked

But I am using the credentials for the community forum, plus I normally use github to log in, so that doesn’t work. I am not sure what to do next so that I can publish to the library registry

According to the docu you should be able to login by setting the environment variable PLATFORMIO_AUTH_TOKEN. Unfortunately you have to create the token with pio account token with demands that you have to logon - the classical chicken-and-egg-problem :wink:.

If you don’t know - or didn’t ever set - your PW for the forum you’ll have to use the “forgot my password” function on logon screen to set/alter the PW, which is shared between forum and package registry