We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c092525 commit d32c71dCopy full SHA for d32c71d
config/src/main/java/com/google/firebase/samples/config/Configure.java
@@ -38,13 +38,15 @@ public class Configure {
38
* @return Access token.
39
* @throws IOException
40
*/
41
+ // [START retrieve_access_token]
42
private static String getAccessToken() throws IOException {
43
GoogleCredential googleCredential = GoogleCredential
44
.fromStream(new FileInputStream("service-account.json"))
45
.createScoped(Arrays.asList(SCOPES));
46
googleCredential.refreshToken();
47
return googleCredential.getAccessToken();
48
}
49
+ // [END retrieve_access_token]
50
51
/**
52
* Get current Firebase Remote Config template from server and store it locally.
0 commit comments