authereum
package instead.
Deprecated: Use the @authereum/sdk
The Authereum JavaScript SDK
Install
npm install @authereum/sdk
Getting started
import Authereum from '@authereum/sdk'
const authereum = new Authereum(/* options */)
Development
Watch and build:
npm run dev
Build:
npm run build
Lint:
npm run lint
Test
npm test
FAQ
-
Q: I added a function to the Authereum SDK and already removed the node_modules from each dir and ran
lerna bootstrap
, but the frontend is unable to use the function. Additionally, the function is not found anywhere in the node_modules/authereum/dist directory -
A:
lerna
is probably using the npm moduleauthereum
, as opposed to the localauthereum
module. This is because theauthereum
version in /packages/frontend/package.json matches an existing npm module. (I assume)lerna
prioritizes live packages, so when you runlerna bootstrap
and it runsnpm install
, it is installing from npm. To fix it, you need to bump the local version ofauthereum
in /packages/authereum/package.json and then copy that version into thepackage.json
in /packages/frontend/package.json. Then rerunlerna bootstrap
(or justlerna link
if you are in the frontend directory).