如何验证 FCM(Firebase 云消息传递)?

How to authenticate FCM (Firebase Cloud Messaging)?

我想向移动应用程序发送通知。为此,我需要 JWT 令牌。 在所有 Google 的文档中都说我应该使用 Admin SDK 获取令牌,但我做不到。 如何在没有 Google 的库的情况下获取访问和刷新令牌?

我需要 URL、HTTP 方法和请求负载。

经过3天的寻找,我在文档中找到了解决方案:

https://developers.google.com/identity/protocols/oauth2/service-account#jwt-auth