Skip to content
This repository was archived by the owner on Dec 30, 2024. It is now read-only.

Commit e54d3f7

Browse files
Fix minor formatting issues
Change-Id: Ieaad145ba5f8c9dc450782db5be149679b8108e3
1 parent 53e88b4 commit e54d3f7

File tree

1 file changed

+3
-2
lines changed
  • admin/src/main/java/com/google/firebase/example

1 file changed

+3
-2
lines changed

admin/src/main/java/com/google/firebase/example/Main.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
public class Main {
1515

16-
public void getServiceAccountAccessToken() throws FileNotFoundException, IOException{
16+
public void getServiceAccountAccessToken() throws FileNotFoundException, IOException {
17+
// https://firebase.google.com/docs/reference/dynamic-links/analytics#api_authorization
1718
// [START get_service_account_tokens]
1819
FileInputStream serviceAccount = new FileInputStream("path/to/serviceAccountKey.json");
1920
FirebaseCredential credential = FirebaseCredentials.fromCertificate(serviceAccount);
@@ -26,7 +27,7 @@ public void onComplete(@NonNull Task<GoogleOAuthAccessToken> task) {
2627
long expirationTime = task.getResult().getExpiryTime();
2728
// Attach accessToken to HTTPS request in the
2829
// "Authorization: Bearer" header
29-
// After expirationTime. you must generate a new access
30+
// After expirationTime, you must generate a new access
3031
// token
3132
} else {
3233
// Error

0 commit comments

Comments
 (0)