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

3.1.4 • 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>
  );
}

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

38

Version

3.1.4

License

MIT

Unpacked Size

4.83 kB

Total Files

15

Last publish

Collaborators

  • jaykay101
  • mishsmelle
  • shopify-dep
  • jaimie.rockburn
  • shopify-admin
  • maryharte
  • pmoloney89
  • netlohan