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

3.1.0 • 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

75

Version

3.1.0

License

MIT

Unpacked Size

4.83 kB

Total Files

15

Last publish

Collaborators

  • jaimie.rockburn
  • blittle
  • shopify-admin
  • maryharte
  • crisfmb
  • pmoloney89
  • netlohan
  • st999999
  • justin-irl
  • megswim
  • wcandillon
  • nathanpjf
  • shopify-dep
  • goodforonefare
  • lemonmade
  • vsumner
  • wizardlyhel
  • antoine.grant
  • tsov
  • andyw8-shopify
  • henrytao
  • hannachen
  • vividviolet
  • bpscott