Skip to content

Commit d795808

Browse files
committed
clarify
1 parent 3c5dbf0 commit d795808

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deviceauth.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ type DeviceAuthResponse struct {
3333
VerificationURI string `json:"verification_uri"`
3434
// 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.
3535
VerificationURIComplete string `json:"verification_uri_complete,omitempty"`
36-
// Expiry is when the device code and user code expire
36+
// Expiry is when the device code and user code expire. When encoding or
37+
// decoding JSON, the following relation is used: Expiry = time.Now() +
38+
// expires_in
3739
Expiry time.Time `json:"expires_in,omitempty"`
3840
// Interval is the duration in seconds that Poll should wait between requests
3941
Interval int64 `json:"interval,omitempty"`

0 commit comments

Comments
 (0)