@insforge/react 0.4.10 → 0.4.11

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
@@ -338,7 +338,7 @@ function InsforgeProvider({
338
338
  async (provider, redirectTo) => {
339
339
  const sdkResult = await insforge.auth.signInWithOAuth({
340
340
  provider,
341
- redirectTo: redirectTo || afterSignInUrl
341
+ redirectTo: redirectTo || window.location.origin + afterSignInUrl
342
342
  });
343
343
  if (sdkResult.error) {
344
344
  throw new Error(sdkResult.error.message);