diff --git a/library/src/social/google.rs b/library/src/social/google.rs index eb80048..695a63e 100644 --- a/library/src/social/google.rs +++ b/library/src/social/google.rs @@ -169,7 +169,11 @@ impl GoogleSocial { .get(&kid) .ok_or_else(|| Box::new(ResErr::social("校验Token失败,未找到正确的公钥")))?; - tracing::info!("public key : {:?}", key); + tracing::debug!("public key : {:?}", key); + // TODO: + // 如果是google game account,可能找不到正确的公钥,需要使用oauth2开发库来实现相应的校验 + // oauth2开发库参考https://github.com/ramosbugs/oauth2-rs/blob/main/examples/google.rs + // google game account账户校验参考:https://github.com/heroiclabs/nakama/blob/master/social/social.go // 验证Token let mut validation: Validation = Validation::new(Algorithm::RS256);