@insforge/react 0.4.10 → 0.4.12

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/index.js CHANGED
@@ -19,6 +19,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
19
19
  import { AlertTriangle, Check, EyeOff, Eye, Loader2, CircleCheck, LogOut } from 'lucide-react';
20
20
  import { z } from 'zod';
21
21
 
22
+ // src/components/SignIn.tsx
22
23
  var InsforgeContext = createContext(void 0);
23
24
  function InsforgeProvider({
24
25
  children,
@@ -338,7 +339,7 @@ function InsforgeProvider({
338
339
  async (provider, redirectTo) => {
339
340
  const sdkResult = await insforge.auth.signInWithOAuth({
340
341
  provider,
341
- redirectTo: redirectTo || afterSignInUrl
342
+ redirectTo: redirectTo || window.location.origin + afterSignInUrl
342
343
  });
343
344
  if (sdkResult.error) {
344
345
  throw new Error(sdkResult.error.message);