Wondering what’s next for npm?Check out our public roadmap! »

    @shopify/react-csrf-universal-provider
    TypeScript icon, indicating that this package has built-in type declarations

    1.2.10 • Public • Published

    @shopify/react-csrf-universal-provider

    Build Status Build Status License: MIT npm version npm bundle size (minified + gzip)

    A self-serializing/deserializing CSRF token provider that works for isomorphic applications.

    Installation

    $ yarn add @shopify/react-csrf-universal-provider

    Usage

    // App.tsx
    
    import {CsrfUniversalProvider} from '@shopify/react-csrf-universal-provider';
    
    function App({token}: {token?: string}) {
      return (
        <CsrfUniversalProvider value={token}>
          {/* rest of the app */}
        </CsrfUniversalProvider>
      );
    }

    Keywords

    none

    Install

    npm i @shopify/react-csrf-universal-provider

    DownloadsWeekly Downloads

    32,668

    Version

    1.2.10

    License

    MIT

    Unpacked Size

    7.02 kB

    Total Files

    21

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar