Installation
npm install @icp-sdk/auth
pnpm add @icp-sdk/auth
You might need to install the peer dependencies of @icp-sdk/auth
manually:
pnpm install @icp-sdk/core
bun add @icp-sdk/auth
yarn add @icp-sdk/auth
Note: this package is only meant to be used in browser environments.
We do not recommend using the CDN distribution of the @icp-sdk/auth
package for production applications.
It can constitute a security risk, because the CDN can potentially serve a different IC mainnet root key.