"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const react = require("react");
const IdentityProvider = require("./IdentityProvider.cjs");
const useIdentity = () => {
  const ctx = react.useContext(IdentityProvider.IdentityContext);
  if (!ctx) {
    throw new Error("Identity context is not initialized");
  }
  return ctx.identity;
};
exports.useIdentity = useIdentity;
//# sourceMappingURL=useIdentity.cjs.map
