chore: login callback query dont consume token

This commit is contained in:
Zack Fu Zi Xiang 2024-07-10 12:15:20 +08:00
parent f223d278b7
commit 5583257184
No known key found for this signature in database
1 changed files with 0 additions and 10 deletions

View File

@ -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(),