Skip to main content
Web2 loginMPC signingNon-custodial

NEAR Auth

Let your users sign NEAR transactions with the accounts they already have — Google, Apple, email, or passkeys — while keys stay secured by a Multi-Party Computation network.

~5 minReactTypeScript

Add social login to your dApp

Wrap your app in a provider and use hooks to authenticate users and request signatures — no wallet integration required.

Start the quickstart →

React SDK reference

Providers, hooks, and the signer API.

Authenticate your users

Login, logout, and session handling.
import { FastAuthProvider, useIsLoggedIn, useFastAuth } from "@fast-auth-near/react-sdk";
import { JavascriptProvider } from "@fast-auth-near/javascript-provider";

const provider = new JavascriptProvider({
  network: "mainnet",
  clientId: "<your-auth0-client-id>",
});

function LoginButton() {
  const { client } = useFastAuth();
  const { isLoggedIn } = useIsLoggedIn();

  return isLoggedIn
    ? <span>You're signed in 🎉</span>
    : <button onClick={() => client?.login()}>Sign in</button>;
}

export default function App({ connection }) {
  return (
    <FastAuthProvider
      providerConfig={{ provider }}
      connection={connection}
      network="mainnet"
    >
      <LoginButton />
    </FastAuthProvider>
  );
}

Why NEAR Auth

No seed phrases

Users sign in with Google, Apple, email, or passkeys through Auth0 — nothing to install, nothing to write down.

Non-custodial by design

Keys are never held by a single party. A Multi-Party Computation network produces every signature from distributed key shares.

Per-user NEAR keys

Each identity deterministically derives its own key, so the same login always controls the same NEAR account.

On-chain verification

A guard contract cryptographically verifies the Auth0 JWT on NEAR before any signature is produced.

Gasless transactions

Sponsor gas via delegate actions, so users transact without holding NEAR.

Drop-in SDKs

Ship on web, React, or React Native with typed SDKs and a handful of lines of code.

Get started in 2 steps

1

Install an SDK and provider

Pick the SDK for your framework and install it alongside the JavaScript (Auth0) provider.
npm install @fast-auth-near/react-sdk @fast-auth-near/javascript-provider near-api-js
2

Log in and sign

Authenticate the user, get a signer, and request a signature for a NEAR transaction.

Open the quickstart

A complete, copy-pasteable integration in under 5 minutes.
Mainnet requires approved credentials — apply for production access to get your Auth0 client ID.
Building locally? You can develop against testnet using the values in Resources → Testnet.

Explore the docs

Home

What NEAR Auth is, quickstarts, integration guides, and going live.

Protocol

Contracts, JWT verification, the Auth0 flow, MPC signing, and advanced topics.

SDKs

Reference-style docs for every published library and provider.

Resources

Deployed contract addresses and network config.