Skip to content

Commit

Permalink
Fix bug with federating auth after recovering a session where the ses…
Browse files Browse the repository at this point in the history
…sion wallet would get reset (#167)
  • Loading branch information
BellringerQuinn authored Aug 22, 2024
1 parent 5d227ee commit f636cfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ public void SetupAuthenticator(IValidator validator = null, IAuthenticator authe
return;
}
ConfigJwt configJwt = SequenceConfig.GetConfigJwt();
_sessionWallet = new EOAWallet();
if (_connectedWalletAddress == null || _sessionWallet == null)
{
_sessionWallet = new EOAWallet();
}
_sessionId = IntentDataOpenSession.CreateSessionId(_sessionWallet.GetAddress());
_intentSender = new IntentSender(new HttpClient(WaaSWithAuthUrl), _sessionWallet, _sessionId, _waasProjectId, _waasVersion);

Expand Down
2 changes: 1 addition & 1 deletion Packages/Sequence-Unity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xyz.0xsequence.waas-unity",
"version": "3.5.0",
"version": "3.5.1",
"displayName": "Sequence Embedded Wallet SDK",
"description": "A Unity SDK for the Sequence WaaS API",
"unity": "2021.3",
Expand Down

0 comments on commit f636cfd

Please sign in to comment.