Skip to content

Commit 07c73f0

Browse files
committed
🐛 Fix Web3Auth login on page reload
1 parent e69d6a4 commit 07c73f0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Runtime/codebase/Web3.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ private void Start()
180180
_web3AuthWallet ??= new Web3AuthWallet(web3AuthWalletOptions, rpcCluster, customRpc, webSocketsRpc);
181181
_web3AuthWallet.OnLoginNotify += (w) =>
182182
{
183+
Debug.Log("We3Auth session detected");
183184
if(w == null) return;
184185
WalletBase = _web3AuthWallet;
185186
};

Runtime/codebase/Web3AuthWallet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ private void OnLogin(Web3AuthResponse response)
8282
_loginTaskCompletionSource?.SetResult(wallet.Account);
8383
}
8484
else
85-
{
86-
OnLoginNotify?.Invoke(wallet.Account);
85+
{
8786
Account = wallet.Account;
87+
OnLoginNotify?.Invoke(wallet.Account);
8888
}
8989
}
9090

0 commit comments

Comments
 (0)