在 Flutter(Dart) 中是否有任何包来获取 GoogleCredential Accesstoken(以下示例用于在 Java 中获取访问令牌)
private static String getAccessToken() throws IOException {
GoogleCredential googleCredential = GoogleCredential
.fromStream(new FileInputStream("service-account.json"))
.createScoped(Arrays.asList(SCOPES));
googleCredential.refreshToken();
return googleCredential.getAccessToken();
}
我需要它来修改 firebase 远程配置。