Skip to content

Commit 3c7d643

Browse files
committed
add refresh token to device response unmarshall
1 parent 85dc6a4 commit 3c7d643

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

internal/oauthdevice/device_flow.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ type DeviceAuthResponse struct {
5050
}
5151

5252
type TokenResponse struct {
53-
AccessToken string `json:"access_token"`
54-
TokenType string `json:"token_type"`
55-
ExpiresIn int `json:"expires_in,omitempty"`
56-
Scope string `json:"scope,omitempty"`
53+
AccessToken string `json:"access_token"`
54+
RefreshToken string `json:"refresh_token,omitempty"`
55+
TokenType string `json:"token_type"`
56+
ExpiresIn int `json:"expires_in,omitempty"`
57+
Scope string `json:"scope,omitempty"`
5758
}
5859

5960
type ErrorResponse struct {

0 commit comments

Comments
 (0)