NewClient creates an *http.Client from a Context and TokenSource. The returned client is not valid beyond the lifetime of the context.

As a special case, if src is nil, a non-OAuth2 client is returned using the provided context. This exists to support related OAuth2 packages.

NewClient is referenced in 97 repositories