For new React apps, we recommend the JavaScript SDK with React Hooks (@dynamic-labs-sdk/react-hooks) instead of the legacy React SDK documented here. The JS SDK comes with many benefits such as a much smaller bundle size and other optimizations. Use the React quickstart (JavaScript SDK) to get started.
You can think of utilities as helper functions on top of the SDK. You could implement them yourself, but we’ve found that these are common tasks and so have done the legwork for you.You can import them directly from the @dynamic-labs/sdk-react-core package, for example:
import { getAuthToken } from "@dynamic-labs/sdk-react-core";
getAuthToken: Used to get a JWT token generated by Dynamic which is stored inside of localStoragegetMinAuthToken: Used to get a minified JWT token generated by Dynamic which is stored inside of localStoragegetNetwork: Used to find the current network used by a wallet. It receives the wallet connector and returns a promise that will resolve with the network.isZeroDevConnector: Used to type check if a wallet connector is a ZeroDev connectorisAuthenticatedWithAWallet: Used to check is the user has authenticated with a walletisLedgerSolanaWallet: Determine if a given wallet is connected as a Ledger Solana wallet
Last modified on June 25, 2026
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.