n4bb12 / verdaccio-github-oauth-ui

📦🔐 GitHub OAuth plugin for Verdaccio
https://verdaccio.org
MIT License
71 stars 45 forks source link

Help text is not replaced in verdaccio 5.5.x and up #151

Closed thatsmydoing closed 2 years ago

thatsmydoing commented 2 years ago

Bug Report

The registry info dialog no longer displays the instructions to add the authToken in verdaccio 5.5 and up. It seems the UI has changed slightly that the selector does not match any more.

Versions

Version
Verdaccio 5.5.1
This plugin 3.2.0
Node.js 14.18.1

Observed behavior

The registry info dialog displays instructions for

npm set registry https://registry.example.com/
npm adduser --registry https://registry.example.com/
npm profile set password --registry https://registry.example.com/

Expected behavior

It should contain

npm config set //registry.example.com:_authToken myauthtoken
npm config set //registry.example.com:always-auth true
n4bb12 commented 2 years ago

Thank you for reporting 🙏

NudeNULL commented 2 years ago

Yes please fix this because I have access to one package as an admin and can't see the token so I can set it on my machine in powershell

n4bb12 commented 2 years ago

I added support for the 5.5 UI in https://github.com/n4bb12/verdaccio-github-oauth-ui/releases/tag/3.2.5 Currently, the npm commands are shown for all package managers. I'll tackle that in a different release. At least now you should be able to copy the token using Verdaccio 5.5+.