From 55832571841ffc1d3a8a67f0ff2f7b25169d424e Mon Sep 17 00:00:00 2001 From: Zack Fu Zi Xiang Date: Wed, 10 Jul 2024 12:15:20 +0800 Subject: [PATCH] chore: login callback query dont consume token --- admin_frontend/src/web_app.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/admin_frontend/src/web_app.rs b/admin_frontend/src/web_app.rs index e552facd..7ee00f12 100644 --- a/admin_frontend/src/web_app.rs +++ b/admin_frontend/src/web_app.rs @@ -122,16 +122,6 @@ async fn login_callback_query_handler( )) .await?; - // Do another round of refresh_token to consume and invalidate the old one - let token = state - .gotrue_client - .token(&gotrue::grant::Grant::RefreshToken( - gotrue::grant::RefreshTokenGrant { - refresh_token: token.refresh_token, - }, - )) - .await?; - verify_token_cloud( token.access_token.as_str(), state.appflowy_cloud_url.as_str(),