8000 oauth2: document JSON encoding of DeviceAuthResponse.Expiry by hickford · Pull Request #676 · golang/oauth2 · GitHub
[go: up one dir, main page]

Skip to content
8000

oauth2: document JSON encoding of DeviceAuthResponse.Expiry #676

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
clarify
  • Loading branch information
hickford committed Oct 14, 2023
commit d7958084b2a1f7ea90e5472fa986fa174cf0ccee
4 changes: 3 additions & 1 deletion deviceauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
0