-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong documentation on NewClient #564
Comments
I agree. This part of documentation seems that it should be moved to |
This may be clarified by https://go-review.googlesource.com/c/oauth2/+/493335. There are three places contexts can be used here:
|
@dnesting maybe this is a separate bug, but it seems to me that the contexts aren't actually respected the way they should be. In particular, I think that cancelling 858c2ad correctly declared that cancellation should be done using the request context, but didn't actually make it work... edit: Sorry, I see this was already discussed on #262. |
Documentation of NewClient states:
oauth2/oauth2.go
Line 333 in 9780585
However, even if you pass a canceled context into NewClient, it has absolutely no effect.
For example:
and then make request with returned client:
it has no effect.
or am I misunderstanding something?
The text was updated successfully, but these errors were encountered: