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

时间:2021-01-27 15:15:40

标签: firebase firebase-cloud-messaging

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

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

1 个答案:

答案 0 :(得分:1)

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

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