diff --git a/library/src/social/google.rs b/library/src/social/google.rs index a8a1892..e35c8b4 100644 --- a/library/src/social/google.rs +++ b/library/src/social/google.rs @@ -196,8 +196,6 @@ impl GoogleSocial { } /// 验证ID Token并考虑kid匹配 - /// - /// TODO: 考虑使用oauth2开发库来实现game account的校验 pub async fn verify_id_token(&self, id_token: &str) -> SocialResult { // 获取并解析公钥 let public_keys = self.fetch_and_parse_google_public_keys().await?; @@ -213,11 +211,7 @@ impl GoogleSocial { let kid = kid.unwrap(); // 根据kid找到正确的公钥 - let key = public_keys - .get(&kid); - - // TODO: - // 如果是google game account,可能找不到正确的公钥,需要使用oauth2开发库来实现相应的校验 + let key = public_keys.get(&kid); match key { Some(key) => {