@b3dotfun/sdk 0.0.62-alpha.3 → 0.0.63-test.0

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.
@@ -22,6 +22,7 @@ function SignInWithB3Flow({ strategies, onLoginSuccess, onSessionKeySuccess, onE
22
22
  const { setB3ModalContentType, setB3ModalOpen, isOpen } = (0, react_1.useModalStore)();
23
23
  const account = (0, react_3.useActiveAccount)();
24
24
  const isAuthenticating = (0, react_1.useAuthStore)(state => state.isAuthenticating);
25
+ const isAuthenticated = (0, react_1.useAuthStore)(state => state.isAuthenticated);
25
26
  const isConnected = (0, react_1.useAuthStore)(state => state.isConnected);
26
27
  const [refetchCount, setRefetchCount] = (0, react_2.useState)(0);
27
28
  const [refetchError, setRefetchError] = (0, react_2.useState)(null);
@@ -64,7 +65,7 @@ function SignInWithB3Flow({ strategies, onLoginSuccess, onSessionKeySuccess, onE
64
65
  isOpen,
65
66
  source,
66
67
  });
67
- if (isConnected) {
68
+ if (isConnected && isAuthenticated) {
68
69
  // Check if we already have a signer for this partner
69
70
  const hasExistingSigner = signers?.some(signer => signer.partner.id === partnerId);
70
71
  if (hasExistingSigner) {
@@ -114,6 +115,7 @@ function SignInWithB3Flow({ strategies, onLoginSuccess, onSessionKeySuccess, onE
114
115
  signersEnabled,
115
116
  isConnected,
116
117
  isAuthenticating,
118
+ isAuthenticated,
117
119
  isOpen,
118
120
  ]);
119
121
  debug("render", {
@@ -19,6 +19,7 @@ export function SignInWithB3Flow({ strategies, onLoginSuccess, onSessionKeySucce
19
19
  const { setB3ModalContentType, setB3ModalOpen, isOpen } = useModalStore();
20
20
  const account = useActiveAccount();
21
21
  const isAuthenticating = useAuthStore(state => state.isAuthenticating);
22
+ const isAuthenticated = useAuthStore(state => state.isAuthenticated);
22
23
  const isConnected = useAuthStore(state => state.isConnected);
23
24
  const [refetchCount, setRefetchCount] = useState(0);
24
25
  const [refetchError, setRefetchError] = useState(null);
@@ -61,7 +62,7 @@ export function SignInWithB3Flow({ strategies, onLoginSuccess, onSessionKeySucce
61
62
  isOpen,
62
63
  source,
63
64
  });
64
- if (isConnected) {
65
+ if (isConnected && isAuthenticated) {
65
66
  // Check if we already have a signer for this partner
66
67
  const hasExistingSigner = signers?.some(signer => signer.partner.id === partnerId);
67
68
  if (hasExistingSigner) {
@@ -111,6 +112,7 @@ export function SignInWithB3Flow({ strategies, onLoginSuccess, onSessionKeySucce
111
112
  signersEnabled,
112
113
  isConnected,
113
114
  isAuthenticating,
115
+ isAuthenticated,
114
116
  isOpen,
115
117
  ]);
116
118
  debug("render", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b3dotfun/sdk",
3
- "version": "0.0.62-alpha.3",
3
+ "version": "0.0.63-test.0",
4
4
  "source": "src/index.ts",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "react-native": "./dist/cjs/index.native.js",
@@ -39,6 +39,7 @@ export function SignInWithB3Flow({
39
39
  const { setB3ModalContentType, setB3ModalOpen, isOpen } = useModalStore();
40
40
  const account = useActiveAccount();
41
41
  const isAuthenticating = useAuthStore(state => state.isAuthenticating);
42
+ const isAuthenticated = useAuthStore(state => state.isAuthenticated);
42
43
  const isConnected = useAuthStore(state => state.isConnected);
43
44
  const [refetchCount, setRefetchCount] = useState(0);
44
45
  const [refetchError, setRefetchError] = useState<string | null>(null);
@@ -92,7 +93,7 @@ export function SignInWithB3Flow({
92
93
  source,
93
94
  });
94
95
 
95
- if (isConnected) {
96
+ if (isConnected && isAuthenticated) {
96
97
  // Check if we already have a signer for this partner
97
98
  const hasExistingSigner = signers?.some(signer => signer.partner.id === partnerId);
98
99
  if (hasExistingSigner) {
@@ -139,6 +140,7 @@ export function SignInWithB3Flow({
139
140
  signersEnabled,
140
141
  isConnected,
141
142
  isAuthenticating,
143
+ isAuthenticated,
142
144
  isOpen,
143
145
  ]);
144
146