移除无用日志
This commit is contained in:
parent
f9a594ad50
commit
d6fec3f4dc
@ -196,8 +196,6 @@ impl GoogleSocial {
|
||||
}
|
||||
|
||||
/// 验证ID Token并考虑kid匹配
|
||||
///
|
||||
/// TODO: 考虑使用oauth2开发库来实现game account的校验
|
||||
pub async fn verify_id_token(&self, id_token: &str) -> SocialResult<GoogleJwtProfile> {
|
||||
// 获取并解析公钥
|
||||
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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user