From f261bdba78c0c274eec9b559091aa9f4cbbff468 Mon Sep 17 00:00:00 2001 From: 0xFirekeeper <0xFirekeeper@gmail.com> Date: Wed, 10 Apr 2024 03:42:15 +0300 Subject: [PATCH] Add EmbeddedWallet.ClearSession --- Thirdweb/Thirdweb.Wallets/EmbeddedAccount/EmbeddedAccount.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Thirdweb/Thirdweb.Wallets/EmbeddedAccount/EmbeddedAccount.cs b/Thirdweb/Thirdweb.Wallets/EmbeddedAccount/EmbeddedAccount.cs index c8c5498..985ed6d 100644 --- a/Thirdweb/Thirdweb.Wallets/EmbeddedAccount/EmbeddedAccount.cs +++ b/Thirdweb/Thirdweb.Wallets/EmbeddedAccount/EmbeddedAccount.cs @@ -48,6 +48,11 @@ public static async Task Create(ThirdwebClient client, string e return new EmbeddedAccount(client, email, phoneNumber, embeddedWallet, ecKey); } + public async Task ClearSession() + { + await _embeddedWallet.SignOutAsync(); + } + #region OTP Flow public async Task SendOTP()