don't obtain a Client from storage on each poll
First verify if the client is authenticated. Then the state of the device authorization. If all is good, we take the Client from Storage.
This commit is contained in:
parent
f26e155208
commit
65cd4528e4
4 changed files with 25 additions and 14 deletions
|
@ -26,5 +26,4 @@ type DeviceAuthorizationResponse struct {
|
|||
type DeviceAccessTokenRequest struct {
|
||||
GrantType string `json:"grant_type"`
|
||||
DeviceCode string `json:"device_code"`
|
||||
ClientID string `json:"client_id"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue