Instead of GoogleCredentials.fromStream(), use GoogleCredentials.getApplicationDefault(). We can comment where to put the JSON file and what environment variable to set if they want it somewhere else. We then would note that the JSON file is unnecessary on Google platforms.
Remove refreshAccessToken() and its comment. This will be done automatically when necessary.
GOOGLE_AUTH_EXAMPLE.md would require being updated to match.
Instead of
GoogleCredentials.fromStream(), useGoogleCredentials.getApplicationDefault(). We can comment where to put the JSON file and what environment variable to set if they want it somewhere else. We then would note that the JSON file is unnecessary on Google platforms.Remove
refreshAccessToken()and its comment. This will be done automatically when necessary.GOOGLE_AUTH_EXAMPLE.md would require being updated to match.