完善google id token 校验

This commit is contained in:
liyunjia 2024-05-29 21:12:50 +08:00
parent 09809fd826
commit 35b6698d07

View File

@ -109,6 +109,7 @@ struct GooglePublicKey {
e: String, e: String,
n: String, n: String,
kty: String, kty: String,
#[serde(rename = "use")]
use_: String, use_: String,
alg: String, alg: String,
kid: String, kid: String,
@ -117,6 +118,7 @@ struct GooglePublicKey {
#[derive(Deserialize, Debug, Clone, Default)] #[derive(Deserialize, Debug, Clone, Default)]
struct GooglePublicKeys { struct GooglePublicKeys {
keys: Vec<GooglePublicKey>, keys: Vec<GooglePublicKey>,
#[serde(skip)]
refresh_at: i64, refresh_at: i64,
} }