diff --git a/google/google.go b/google/google.go index 604edf5..0465d19 100644 --- a/google/google.go +++ b/google/google.go @@ -201,7 +201,7 @@ func (f *credentialsFile) tokenSource(ctx context.Context, params CredentialsPar Ts: oauth2.ReuseTokenSource(nil, ts), Delegates: f.Delegates, } - return oauth2.ReuseTokenSource(nil, imp), nil + return imp, nil case "": return nil, errors.New("missing 'type' field in credentials") default: