All methods that make HTTP requests currently lack context.Context support, making it impossible for callers to cancel in-flight requests or propagate deadlines.
WaitForDeviceAuthorization is the most acute case, it blocks for up to ExpiresIn seconds with no way for callers to cancel early, making it unfit for use in any context-aware application without wrapping it in a goroutine.
This is a breaking API change for all callers, it should be released as a major version.
All methods that make HTTP requests currently lack
context.Contextsupport, making it impossible for callers to cancel in-flight requests or propagate deadlines.WaitForDeviceAuthorizationis the most acute case, it blocks for up toExpiresInseconds with no way for callers to cancel early, making it unfit for use in any context-aware application without wrapping it in a goroutine.This is a breaking API change for all callers, it should be released as a major version.