UNPKG

@kinde-oss/kinde-auth-react

Version:

Kinde React SDK for authentication

2 lines (1 loc) 238 B
"use strict";const t=require("react"),n=t.createContext(null),o=()=>{const e=t.useContext(n);if(e===null)throw new Error("Oooops! useKindeAuth must be used within a KindeProvider");return e};exports.KindeContext=n;exports.useKindeAuth=o;