Skip to content

Commit

Permalink
Clear session in disconnect by default
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFirekeeper committed Apr 10, 2024
1 parent f261bdb commit 97c6e21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Thirdweb/Thirdweb.Wallets/EmbeddedAccount/EmbeddedAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ public static async Task<EmbeddedAccount> Create(ThirdwebClient client, string e
return new EmbeddedAccount(client, email, phoneNumber, embeddedWallet, ecKey);
}

public async Task ClearSession()
public override async Task Disconnect()
{
await base.Disconnect();
await _embeddedWallet.SignOutAsync();
}

Expand Down

0 comments on commit 97c6e21

Please sign in to comment.