Installing Plug login button

Hi all,

I’m having a hard time integrating plug wallet into my app. I followed all the steps provided on this page (Authentication Button - Documentation | Plug) but I’m getting the following error when trying npm install @psychedelic/plug-connect --save:

npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.org/@psychedelic%2fplug-connect - Not found
npm error 404
npm error 404  '@psychedelic/plug-connect@*' is not in this registry.
npm error 404
npm error 404 Note that you can also install from a
npm error 404 tarball, folder, http url, or git url.

Can anybody confirm that this tutorial to add a plug login button is still up-to-date ?
If it is, any clue why I’m getting a 404 when trying to install the package ?

Before someone asks, this is what my ~/.npmrc file looks like:

//registry.npmjs.org/:_authToken=npm_7sW4b8xxxxx......
//npm.pkg.github.com/:_authToken=ghp_NFNxxxxxx....
@Psychedelic:registry=https://npm.pkg.github.com/

I did ask on the Plug Discord several times but never got an answer.

Any help appreciated!

In the Identity & Authentication WG, we’ve been working on standardizing communication between wallets and dapps.

A library that implements these WG standards can be found here. The readme also mentions a drop in replacement library for HttpAgent to make calls through a wallet.

Plug is also actively implementing these standards, at the bottom of the readme of above lib, a package can be found to add support for Plug.

Meanwhile the NFID team is also working on IdentityKit which is a more straightforward component framework that offers a simple connect button and other interface elements related to a wallet connection similar to the library you’ve mentioned.

1 Like

Yes I’d recommend IdentityKit as @sea-snake mentioned. It now supports Plug, Internet Identity, Stoic, and NFID Wallet thanks to the package he linked.