@insforge/react 0.5.1 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/forms.cjs CHANGED
@@ -626,9 +626,6 @@ var InsforgeContext = react.createContext(void 0);
626
626
  function useInsforge() {
627
627
  const context = react.useContext(InsforgeContext);
628
628
  if (!context) {
629
- if (typeof window !== "undefined") {
630
- throw new Error("useInsforge must be used within InsforgeProvider");
631
- }
632
629
  return {
633
630
  user: null,
634
631
  isLoaded: false,
@@ -639,8 +636,7 @@ function useInsforge() {
639
636
  signUp: async () => ({ error: "SSR mode" }),
640
637
  signOut: async () => {
641
638
  },
642
- updateUser: async () => {
643
- },
639
+ updateUser: async () => ({ error: "SSR mode" }),
644
640
  reloadAuth: async () => ({ success: false, error: "SSR mode" }),
645
641
  sendVerificationEmail: async () => null,
646
642
  sendResetPasswordEmail: async () => null,