@turnkey/sdk-react 4.2.3 → 4.2.5
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/CHANGELOG.md +22 -0
- package/dist/components/auth/Apple.d.ts +1 -0
- package/dist/components/auth/Apple.d.ts.map +1 -1
- package/dist/components/auth/Apple.js +8 -4
- package/dist/components/auth/Apple.js.map +1 -1
- package/dist/components/auth/Apple.mjs +9 -4
- package/dist/components/auth/Apple.mjs.map +1 -1
- package/dist/components/auth/Auth.d.ts +1 -0
- package/dist/components/auth/Auth.d.ts.map +1 -1
- package/dist/components/auth/Auth.js +4 -0
- package/dist/components/auth/Auth.js.map +1 -1
- package/dist/components/auth/Auth.mjs +5 -1
- package/dist/components/auth/Auth.mjs.map +1 -1
- package/dist/components/auth/Facebook.d.ts +1 -0
- package/dist/components/auth/Facebook.d.ts.map +1 -1
- package/dist/components/auth/Facebook.js +53 -31
- package/dist/components/auth/Facebook.js.map +1 -1
- package/dist/components/auth/Facebook.mjs +69 -44
- package/dist/components/auth/Facebook.mjs.map +1 -1
- package/dist/components/auth/Google.d.ts +1 -0
- package/dist/components/auth/Google.d.ts.map +1 -1
- package/dist/components/auth/Google.js +60 -35
- package/dist/components/auth/Google.js.map +1 -1
- package/dist/components/auth/Google.mjs +35 -5
- package/dist/components/auth/Google.mjs.map +1 -1
- package/dist/components/auth/OtpVerification.d.ts +1 -0
- package/dist/components/auth/OtpVerification.d.ts.map +1 -1
- package/dist/components/auth/OtpVerification.js +2 -0
- package/dist/components/auth/OtpVerification.js.map +1 -1
- package/dist/components/auth/OtpVerification.mjs +3 -0
- package/dist/components/auth/OtpVerification.mjs.map +1 -1
- package/dist/components/auth/otp.d.ts +1 -0
- package/dist/components/auth/otp.d.ts.map +1 -1
- package/dist/components/auth/otp.js +2 -0
- package/dist/components/auth/otp.js.map +1 -1
- package/dist/components/auth/otp.mjs +2 -0
- package/dist/components/auth/otp.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -59,7 +59,7 @@ var passkeyIconError = jsxs("svg", {
|
|
|
59
59
|
})]
|
|
60
60
|
});
|
|
61
61
|
var Auth = function Auth(_ref) {
|
|
62
|
-
var _otpConfig$otpLength2;
|
|
62
|
+
var _otpConfig$alphanumer2, _otpConfig$otpLength2;
|
|
63
63
|
var onAuthSuccess = _ref.onAuthSuccess,
|
|
64
64
|
onError = _ref.onError,
|
|
65
65
|
authConfig = _ref.authConfig,
|
|
@@ -596,6 +596,7 @@ var Auth = function Auth(_ref) {
|
|
|
596
596
|
layout: layout,
|
|
597
597
|
clientId: (_authConfig$googleCli = authConfig.googleClientId) !== null && _authConfig$googleCli !== void 0 ? _authConfig$googleCli : process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID,
|
|
598
598
|
iframePublicKey: authIframeClient.iframePublicKey,
|
|
599
|
+
openInPage: authConfig.openOAuthInPage,
|
|
599
600
|
onSuccess: function onSuccess(response) {
|
|
600
601
|
return handleOAuthLogin(response.idToken, "Google");
|
|
601
602
|
}
|
|
@@ -603,6 +604,7 @@ var Auth = function Auth(_ref) {
|
|
|
603
604
|
layout: layout,
|
|
604
605
|
clientId: (_authConfig$appleClie = authConfig.appleClientId) !== null && _authConfig$appleClie !== void 0 ? _authConfig$appleClie : process.env.NEXT_PUBLIC_APPLE_CLIENT_ID,
|
|
605
606
|
iframePublicKey: authIframeClient.iframePublicKey,
|
|
607
|
+
openInPage: authConfig.openOAuthInPage,
|
|
606
608
|
onSuccess: function onSuccess(response) {
|
|
607
609
|
return handleOAuthLogin(response.idToken, "Apple");
|
|
608
610
|
}
|
|
@@ -610,6 +612,7 @@ var Auth = function Auth(_ref) {
|
|
|
610
612
|
layout: layout,
|
|
611
613
|
clientId: (_authConfig$facebookC = authConfig.facebookClientId) !== null && _authConfig$facebookC !== void 0 ? _authConfig$facebookC : process.env.NEXT_PUBLIC_FACEBOOK_CLIENT_ID,
|
|
612
614
|
iframePublicKey: authIframeClient.iframePublicKey,
|
|
615
|
+
openInPage: authConfig.openOAuthInPage,
|
|
613
616
|
onSuccess: function onSuccess(response) {
|
|
614
617
|
return handleOAuthLogin(response.id_token, "Facebook");
|
|
615
618
|
}
|
|
@@ -845,6 +848,7 @@ var Auth = function Auth(_ref) {
|
|
|
845
848
|
contact: step === OtpType.Email ? email : phone,
|
|
846
849
|
suborgId: suborgId,
|
|
847
850
|
otpId: otpId,
|
|
851
|
+
alphanumeric: (_otpConfig$alphanumer2 = otpConfig === null || otpConfig === void 0 ? void 0 : otpConfig.alphanumeric) !== null && _otpConfig$alphanumer2 !== void 0 ? _otpConfig$alphanumer2 : false,
|
|
848
852
|
sessionLengthSeconds: authConfig.sessionLengthSeconds,
|
|
849
853
|
onValidateSuccess: onAuthSuccess,
|
|
850
854
|
onResendCode: handleResendCode,
|