From 97c6e21d08851001dbdf927ec83053456b89e874 Mon Sep 17 00:00:00 2001 From: 0xFirekeeper <0xFirekeeper@gmail.com> Date: Wed, 10 Apr 2024 03:49:59 +0300 Subject: [PATCH] Clear session in disconnect by default --- Thirdweb/Thirdweb.Wallets/EmbeddedAccount/EmbeddedAccount.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Thirdweb/Thirdweb.Wallets/EmbeddedAccount/EmbeddedAccount.cs b/Thirdweb/Thirdweb.Wallets/EmbeddedAccount/EmbeddedAccount.cs index 985ed6d..ceb7300 100644 --- a/Thirdweb/Thirdweb.Wallets/EmbeddedAccount/EmbeddedAccount.cs +++ b/Thirdweb/Thirdweb.Wallets/EmbeddedAccount/EmbeddedAccount.cs @@ -48,8 +48,9 @@ public static async Task 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(); }