Installation
To start using the FastAuth React 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/react-sdk near-api-js
Using yarn
yarn add @fast-auth-near/react-sdk near-api-js
Using pnpm
pnpm add @fast-auth-near/react-sdk near-api-js
Dependencies
The React SDK requires the following peer dependencies:
react(^19.0.0) - React librarynear-api-js- For NEAR blockchain interactions
Installing dependencies
# Using npm
npm install react near-api-js
# Using yarn
yarn add react near-api-js
# Using pnpm
pnpm add react 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/react-sdk@<version>
Using yarn
yarn add @fast-auth-near/react-sdk@<version>
Using pnpm
pnpm add @fast-auth-near/react-sdk@<version>