azirid-react 0.10.2 → 0.10.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/README.md +3 -1
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -766,9 +766,15 @@ function AziridProviderInner({
|
|
|
766
766
|
},
|
|
767
767
|
[client]
|
|
768
768
|
);
|
|
769
|
+
const bootstrapCalled = useRef(false);
|
|
769
770
|
useEffect(() => {
|
|
770
771
|
const autoBootstrap = props.autoBootstrap ?? true;
|
|
771
772
|
if (!autoBootstrap) return;
|
|
773
|
+
if (bootstrapCalled.current) {
|
|
774
|
+
setIsBootstrapping(false);
|
|
775
|
+
return;
|
|
776
|
+
}
|
|
777
|
+
bootstrapCalled.current = true;
|
|
772
778
|
let cancelled = false;
|
|
773
779
|
async function bootstrap() {
|
|
774
780
|
setIsBootstrapping(true);
|
|
@@ -4347,7 +4353,7 @@ function usePasswordToggle() {
|
|
|
4347
4353
|
}
|
|
4348
4354
|
|
|
4349
4355
|
// src/index.ts
|
|
4350
|
-
var SDK_VERSION = "0.10.
|
|
4356
|
+
var SDK_VERSION = "0.10.3";
|
|
4351
4357
|
|
|
4352
4358
|
export { AuthForm, AziridProvider, BASE_PATHS, CheckoutButton, ForgotPasswordForm, InvoiceList, LoginForm, PATHS, PayButton, PayphoneCallback, PayphoneWidgetRenderer, PricingTable, ReferralCard, ReferralStats, ResetPasswordForm, SDK_VERSION, SignupForm, SubscriptionBadge, buildPaths, changePasswordSchema, cn, createAccessClient, createForgotPasswordSchema, createLoginSchema, createMutationHook, createResetPasswordConfirmSchema, createSignupSchema, en, es, forgotPasswordSchema, isAuthError, loginSchema, magicLinkRequestSchema, magicLinkVerifySchema, passkeyRegisterStartSchema, removeStyles, resetPasswordConfirmSchema, resolveMessages, signupSchema, socialLoginSchema, useAccessClient, useAzirid, useBootstrap, useBranding, useChangePassword, useCheckout, useFormState, useInvoices, useLogin, useLogout, useMagicLink, useMessages, usePasskeys, usePasswordReset, usePasswordToggle, usePayButton, usePaymentProviders, usePayphoneCheckout, usePayphoneConfirm, usePlans, useReferral, useReferralStats, useRefresh, useSession, useSignup, useSocialLogin, useSubmitTransferProof, useSubscription, useSwitchTenant, useTenantMembers, useTenants, useTransferPayment, useTransferProofs };
|
|
4353
4359
|
//# sourceMappingURL=index.js.map
|