From d7958084b2a1f7ea90e5472fa986fa174cf0ccee Mon Sep 17 00:00:00 2001 From: M Hickford Date: Sat, 14 Oct 2023 21:10:38 +0100 Subject: [PATCH] clarify --- deviceauth.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deviceauth.go b/deviceauth.go index e99c92f39..1b5142ccd 100644 --- a/deviceauth.go +++ b/deviceauth.go @@ -33,7 +33,9 @@ type DeviceAuthResponse struct { VerificationURI string `json:"verification_uri"` // VerificationURIComplete (if populated) includes the user code in the verification URI. This is typically shown to the user in non-textual form, such as a QR code. VerificationURIComplete string `json:"verification_uri_complete,omitempty"` - // Expiry is when the device code and user code expire + // Expiry is when the device code and user code expire. When encoding or + // decoding JSON, the following relation is used: Expiry = time.Now() + + // expires_in Expiry time.Time `json:"expires_in,omitempty"` // Interval is the duration in seconds that Poll should wait between requests Interval int64 `json:"interval,omitempty"`