UNPKG

@wristband/react-client-auth

Version:

A lightweight React SDK that pairs with your backend server auth to initialize and sync frontend sessions via secure session cookies.

9 lines (5 loc) 264 B
'use strict'; var react = require('react'); // React context responsbile for establishing that the user is authenticated and getting session data. const WristbandAuthContext = react.createContext(undefined); exports.WristbandAuthContext = WristbandAuthContext;