Skip to content

Commit b121952

Browse files
committed
⚡ Improve socket connection on Web3Auth login
1 parent 07c73f0 commit b121952

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Runtime/codebase/Web3.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,12 @@ private void Start()
181181
_web3AuthWallet.OnLoginNotify += (w) =>
182182
{
183183
Debug.Log("We3Auth session detected");
184+
Debug.Log("Wallet address: " + w?.PublicKey);
184185
if(w == null) return;
185186
WalletBase = _web3AuthWallet;
187+
OnLogin?.Invoke(w);
188+
OnWalletChangeStateInternal?.Invoke();
189+
SubscribeToWalletEvents().Forget();
186190
};
187191
}
188192
catch (Exception e)

0 commit comments

Comments
 (0)