In Flutter(Dart) is there any package to get GoogleCredential Accesstoken (This below sample is for getting Access Token in 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();
}
I need it to modify firebase remote config.
If you are searching for identity provider by google this may help you https://pub.dartlang.org/packages/google_sign_in