Start on testnet with the values below — no sign-off needed. When you’re ready to launch, apply for production access to get your own mainnet Auth0
clientId.All values, side by side
Every setting your app needs, per network. The NEAR values feednear-api-js and the FastAuthClient config; the Auth0 values feed the JavascriptProvider (or ReactNativeProvider).
| Setting | Mainnet | Testnet |
|---|---|---|
networkId | mainnet | testnet |
NEAR RPC (nodeUrl) | https://rpc.mainnet.near.org | https://rpc.testnet.near.org |
fastAuthContractId | fast-auth.near | fast-auth.testnet |
mpcContractId | v1.signer | v1.signer-prod.testnet |
Auth0 domain | login.auth.near.org | login.testnet.fast-auth.com |
Auth0 signingAudience | auth0.jwt.fast-auth.near | auth0.jwt.fast-auth.testnet |
Auth0 clientId | your approved application | np8paqIpMWmNbzT4xAvOOapZBjsOpptl |
domain and signingAudience are optional on the provider — the SDK ships the correct defaults for the network you pass, so you only set them to override a custom Auth0 setup. clientId is always required.What each value is for
networkId— the NEAR network your app talks to. Selects the RPC, contracts, and MPC signer for that environment.- NEAR RPC (
nodeUrl) — the JSON-RPC endpointnear-api-jsuses to build the connection you pass intoFastAuthClient. fastAuthContractId— the account of the on-chain NEAR Auth contract that verifies the Auth0 JWT and requests the signature.mpcContractId— the MPC signer contract that produces the signature from distributed key shares. Full contract addresses live on the Mainnet and Testnet reference pages.- Auth0
domain— the Auth0 tenant that hosts the login flow. - Auth0
signingAudience— the audience the issued JWT is scoped to; on-chain, the Auth0 Guard checks thisaudvalue. - Auth0
clientId— identifies your application to Auth0.
Ready-to-copy config
Drop one of these into your app and read from it. Thenear block configures the Browser SDK client; the auth0 block configures the JavaScript provider.
Wiring it into the SDK
Once you’ve picked a config, only three things flow into the SDK: thenetwork and clientId for the provider, and the fastAuthContractId / mpcContractId for the client. The NEAR connection is built from networkId and nodeUrl.
Keep exploring
Mainnet reference
Deployed contract addresses, RPC, and explorer for production.
Testnet reference
The same lookup for the testnet environment.
Apply for production
Get your own mainnet Auth0 credentials.