๐Ÿš€ Stablecoin Accounts are live! Learn more

Dynamic home pagelight logodark logo
  • Explore Dynamic
  • Start Free
  • Start Free
Documentation
React SDK
React Native SDK
Swift SDK
Flutter SDK
Tutorials
API Reference
Troubleshooting
Live Support
  • System Status
  • Changelog
  • Overview & Setup
    • Introduction to the SDK
    • Changelog
    • Using Wagmi
    • Using Ethers
    • SDK/User Loading States
    • Examples
    Upgrade Guides
    • Upgrade from V3 to v4
    • Upgrade from V2 to V3
    • Upgrade from V1 to V2
    • Upgrade from V0 to V1
    Providers & Connectors
    • Providers and Connectors Introduction
    • DynamicContextProvider
    • DynamicWagmiConnector
    UI Components
    • Components Introduction
    • DynamicBridgeWidget
    • DynamicConnectButton
    • DynamicEmbeddedWidget
    • DynamicMultiWalletPromptsWidget
    • DynamicWidget
    • DynamicUserProfile
    • DynamicNav
    Hooks
    • Hooks Introduction
    • Core Hooks
    • Login & User Management
    • Wallets
    • Embedded Wallets
    • Funding
    Events
    • Events Introduction
    • Dynamic Events
    • Event Callbacks
    Handlers
    • Handlers Introduction
    • handleConnectedWallet
    • handleAuthenticatedUser
    Objects & Utilities
    • React Objects Introduction
    • Objects
    • Utilities
      • Utilities Introduction
      • getAuthToken
      • getMinAuthToken
      • getNetwork
      • getOrMapViemChain
      • isZeroDevConnector
      • isAuthenticatedWithAWallet
      • isLedgerSolanaWallet
      • mergeNetworks
      • overrideNetworkRpcUrl
    Utilities

    getAuthToken

    This utility can be used to get a JWT token generated by Dynamic which is stored inside of localStorage.

    Copy
    Ask AI
    import { getAuthToken } from "@dynamic-labs/sdk-react-core";
    
    const App = () => {
        const dynamicJwtToken = getAuthToken()
        ...
    }
    

    Was this page helpful?

    Utilities IntroductiongetMinAuthToken
    twitterlinkedinslack
    Powered by Mintlify
    Assistant
    Responses are generated using AI and may contain mistakes.