From ae009840380e1d3c8239d75f738546dc9d29e5ee Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 8 Dec 2023 12:30:29 +0800 Subject: [PATCH] fix: test --- libs/client-api/src/http.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libs/client-api/src/http.rs b/libs/client-api/src/http.rs index f739c852..2a423ce2 100644 --- a/libs/client-api/src/http.rs +++ b/libs/client-api/src/http.rs @@ -666,12 +666,8 @@ impl Client { } } - #[instrument(level = "debug", skip_all, err)] + #[instrument(level = "debug", skip_all)] pub async fn sign_out(&self) -> Result<(), AppResponseError> { - if self.token.read().is_empty() { - return Ok(()); - } - self.gotrue_client.logout(&self.access_token()?).await?; self.token.write().unset(); Ok(())