@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.js CHANGED
@@ -624,9 +624,6 @@ var InsforgeContext = createContext(void 0);
624
624
  function useInsforge() {
625
625
  const context = useContext(InsforgeContext);
626
626
  if (!context) {
627
- if (typeof window !== "undefined") {
628
- throw new Error("useInsforge must be used within InsforgeProvider");
629
- }
630
627
  return {
631
628
  user: null,
632
629
  isLoaded: false,
@@ -637,8 +634,7 @@ function useInsforge() {
637
634
  signUp: async () => ({ error: "SSR mode" }),
638
635
  signOut: async () => {
639
636
  },
640
- updateUser: async () => {
641
- },
637
+ updateUser: async () => ({ error: "SSR mode" }),
642
638
  reloadAuth: async () => ({ success: false, error: "SSR mode" }),
643
639
  sendVerificationEmail: async () => null,
644
640
  sendResetPasswordEmail: async () => null,