如何通过Apple登录验证JWT

时间:2019-12-24 07:39:53

标签: ios oauth sign-in-with-apple

发件人: https://docs.developer.pv.apple.com/documentation/signinwithapplerestapi/fetch_apple_s_public_key_for_verifying_token_signature

我可以获取Apple的公钥:

{
  "keys": [
    {
      "kty": "RSA",
      "kid": "...",
      "use": "sig",
      "alg": "RS256",
      "n": "...",
      "e": "..."
    }
  ]
}

如何使用此密钥来验证我从登录中获得的JWT

0 个答案:

没有答案