@insforge/react 0.2.8 → 0.2.9
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/components.d.mts +5 -8
- package/dist/components.d.ts +5 -8
- package/dist/components.js +4 -4
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +4 -4
- package/dist/components.mjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.mts +2 -0
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1260,6 +1260,7 @@ function SignInForm({
|
|
|
1260
1260
|
);
|
|
1261
1261
|
}
|
|
1262
1262
|
function SignIn({
|
|
1263
|
+
afterSignInUrl,
|
|
1263
1264
|
onSuccess,
|
|
1264
1265
|
onError,
|
|
1265
1266
|
...uiProps
|
|
@@ -1299,10 +1300,9 @@ function SignIn({
|
|
|
1299
1300
|
try {
|
|
1300
1301
|
setOauthLoading(provider);
|
|
1301
1302
|
setError("");
|
|
1302
|
-
const redirectTo = `${window.location.origin}/auth/callback`;
|
|
1303
1303
|
await insforge.auth.signInWithOAuth({
|
|
1304
1304
|
provider,
|
|
1305
|
-
redirectTo
|
|
1305
|
+
redirectTo: afterSignInUrl
|
|
1306
1306
|
});
|
|
1307
1307
|
} catch (err) {
|
|
1308
1308
|
const errorMessage = err.message || `${provider} sign in failed`;
|
|
@@ -1481,6 +1481,7 @@ function SignUpForm({
|
|
|
1481
1481
|
);
|
|
1482
1482
|
}
|
|
1483
1483
|
function SignUp({
|
|
1484
|
+
afterSignUpUrl,
|
|
1484
1485
|
onSuccess,
|
|
1485
1486
|
onError,
|
|
1486
1487
|
...uiProps
|
|
@@ -1525,10 +1526,9 @@ function SignUp({
|
|
|
1525
1526
|
try {
|
|
1526
1527
|
setOauthLoading(provider);
|
|
1527
1528
|
setError("");
|
|
1528
|
-
const redirectTo = `${window.location.origin}/auth/callback`;
|
|
1529
1529
|
await insforge.auth.signInWithOAuth({
|
|
1530
1530
|
provider,
|
|
1531
|
-
redirectTo
|
|
1531
|
+
redirectTo: afterSignUpUrl
|
|
1532
1532
|
});
|
|
1533
1533
|
} catch (err) {
|
|
1534
1534
|
const errorMessage = err.message || `${provider} sign up failed`;
|