Skip to main content

Installation

To start using the FastAuth JavaScript Provider, 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/javascript-provider

Using yarn

yarn add @fast-auth-near/javascript-provider

Using pnpm

pnpm add @fast-auth-near/javascript-provider

Dependencies

The JavaScript Provider includes the following dependencies:

  • @auth0/auth0-spa-js - Auth0 authentication
  • near-api-js - NEAR Protocol integration
  • @near-js/transactions - NEAR transaction handling
  • jose - JWT handling

These will be automatically installed with the provider.

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/javascript-provider@<version>

Using yarn

yarn add @fast-auth-near/javascript-provider@<version>

Using pnpm

pnpm add @fast-auth-near/javascript-provider@<version>