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.

7 lines (4 loc) 232 B
import { createContext } from 'react'; // React context responsbile for establishing that the user is authenticated and getting session data. const WristbandAuthContext = createContext(undefined); export { WristbandAuthContext };