Skip to main content

Installation

To start using the FastAuth Browser SDK, you need to install it first. You can install the latest version or a specific version.

Latest version

To install the latest version, you can use the following commands:

Using npm

npm install @fast-auth-near/browser-sdk

Using yarn

yarn add @fast-auth-near/browser-sdk

Using pnpm

pnpm add @fast-auth-near/browser-sdk

Dependencies

The Browser SDK requires the following peer dependencies:

  • near-api-js - For NEAR blockchain interactions
  • @auth0/auth0-spa-js - If using Auth0Provider (optional)

Installing dependencies

# Using npm
npm install near-api-js

# Using yarn
yarn add near-api-js

# Using pnpm
pnpm add near-api-js

Specific version

If you want to install a specific version, you can find all the available versions in the Changelog page.

Using npm

npm install @fast-auth-near/browser-sdk@<version>

Using yarn

yarn add @fast-auth-near/browser-sdk@<version>

Using pnpm

pnpm add @fast-auth-near/browser-sdk@<version>