Skip to content

Simplify example-gauth with our recommendations #5677

Description

@ejona86

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions