chore: login callback query dont consume token
This commit is contained in:
parent
f223d278b7
commit
5583257184
|
|
@ -122,16 +122,6 @@ async fn login_callback_query_handler(
|
||||||
))
|
))
|
||||||
.await?;
|
.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(
|
verify_token_cloud(
|
||||||
token.access_token.as_str(),
|
token.access_token.as_str(),
|
||||||
state.appflowy_cloud_url.as_str(),
|
state.appflowy_cloud_url.as_str(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue