在 firebase 中使用 Google 登录后,我获得了当前用户的以下凭据。
{
oauthAccessToken: "ya29.a0AfH6SMAbP.............",
oauthIdToken: "eyJhbGciOiJSUz................",
providerId: "google.com",
signInMethod: "google.com"
}
现在我应该如何使用这些访问令牌来连接 Google API?正如 Firebase 官方文档中的 here 所写。 https://firebase.google.com/docs/auth/web/google-signin。
到目前为止,我所发现的都是使用 gapi 登录并使用其凭据登录 firebase。有没有其他可能的方法?