Skip to content

Commit 66dfbbe

Browse files
Only reset session id if there is no connected wallet address - without this, the flow to re-use the login panel from our docs (setting a connected wallet address) is broken - the waas api will reject the federate auth attempt as you will be using an un-authenticated session id (#244)
1 parent 8679ecb commit 66dfbbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Packages/Sequence-Unity/Sequence/SequenceSDK/EmbeddedWallet/SequenceLogin.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ private void CreateWallet(IValidator validator = null, IAuthenticator authentica
108108

109109
public void ResetSessionId()
110110
{
111-
if (_connectedWalletAddress != null) {
112-
return;
113-
}
111+
if (_connectedWalletAddress != null) {
112+
return;
113+
}
114114
_sessionWallet = new EOAWallet();
115115
_sessionId = IntentDataOpenSession.CreateSessionId(_sessionWallet.GetAddress());
116116
_intentSender = new IntentSender(new HttpClient(WaaSWithAuthUrl), _sessionWallet, _sessionId, _waasProjectId, _waasVersion);

0 commit comments

Comments
 (0)