Skip to content

Commit

Permalink
⚡ Improve socket connection on Web3Auth login
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielePicco committed Jul 30, 2023
1 parent 07c73f0 commit b121952
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Runtime/codebase/Web3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,12 @@ private void Start()
_web3AuthWallet.OnLoginNotify += (w) =>
{
Debug.Log("We3Auth session detected");
Debug.Log("Wallet address: " + w?.PublicKey);
if(w == null) return;
WalletBase = _web3AuthWallet;
OnLogin?.Invoke(w);
OnWalletChangeStateInternal?.Invoke();
SubscribeToWalletEvents().Forget();
};
}
catch (Exception e)
Expand Down

0 comments on commit b121952

Please sign in to comment.