diff --git a/google/example_test.go b/google/example_test.go index ac61db2..2958692 100644 --- a/google/example_test.go +++ b/google/example_test.go @@ -63,7 +63,7 @@ func ExampleJWTConfigFromJSON() { if err != nil { log.Fatal(err) } - conf, err := google.JWTConfigFromJSON(oauth2.NoContext, data, "https://www.googleapis.com/auth/bigquery") + conf, err := google.JWTConfigFromJSON(data, "https://www.googleapis.com/auth/bigquery") if err != nil { log.Fatal(err) } diff --git a/google/google.go b/google/google.go index c65b800..bbe6a38 100644 --- a/google/google.go +++ b/google/google.go @@ -41,7 +41,7 @@ const JWTTokenURL = "https://accounts.google.com/o/oauth2/token" // the credentials that authorize and authenticate the requests. // Create a service account on "Credentials" page under "APIs & Auth" for your // project at https://console.developers.google.com to download a JSON key file. -func JWTConfigFromJSON(ctx oauth2.Context, jsonKey []byte, scope ...string) (*jwt.Config, error) { +func JWTConfigFromJSON(jsonKey []byte, scope ...string) (*jwt.Config, error) { var key struct { Email string `json:"client_email"` PrivateKey string `json:"private_key"`