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:
Tim Möhlmann 2023-02-26 18:23:43 +01:00
parent f26e155208
commit 65cd4528e4
4 changed files with 25 additions and 14 deletions

View file

@ -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"`
}