Web2 login MPC signing Non-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.
React
Browser / JS
React Native
~5 minReact TypeScript
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 >
);
}
~5 minVanilla JS Vue Svelte
Framework-agnostic client Use the class-based FastAuthClient in any web app to log users in and obtain a signer.
Start the quickstart →
Browser SDK reference The FastAuthClient and FastAuthSigner classes.
Choose your SDK Which library fits your stack.
import { FastAuthClient } from "@fast-auth-near/browser-sdk" ;
import { JavascriptProvider } from "@fast-auth-near/javascript-provider" ;
import { connect } from "near-api-js" ;
const provider = new JavascriptProvider ({
network: "mainnet" ,
clientId: "<your-auth0-client-id>" ,
});
const { connection } = await connect ({
networkId: "mainnet" ,
nodeUrl: "https://rpc.mainnet.near.org" ,
});
const client = new FastAuthClient (provider, connection, {
fastAuthContractId: "fast-auth.near" ,
mpcContractId: "v1.signer" ,
});
await client. login ();
const signer = await client. getSigner ();
~10 miniOS Android
Native mobile login Bring the same social login to iOS and Android with the React Native provider, backed by react-native-auth0.
Start the quickstart →
React Native provider Login, credentials, and signature requests on mobile.
import { Auth0Provider } from "react-native-auth0" ;
import { ReactNativeProvider } from "@fast-auth-near/react-native-provider" ;
const provider = new ReactNativeProvider ({
network: "mainnet" ,
clientId: "<your-auth0-client-id>" ,
});
export default function App () {
return (
< Auth0Provider domain = "login.auth.near.org" clientId = "<your-auth0-client-id>" >
< YourApp provider = {provider} />
</ Auth0Provider >
);
}
// later, inside a component:
await provider. login ();
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
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
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.
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.