diff --git a/main.go b/main.go index 3c77ba0e64f4f9d09de53b3a358b4f1cef9e9720..0a00b664a2d882ccb20d6071d57f982cd04f9aa0 100644 --- a/main.go +++ b/main.go @@ -59,6 +59,7 @@ type GrdfConsentementToken struct { type GrdfTokenResponse struct { AccessToken string `json:"access_token"` + RefreshToken string `json:"refresh_token"` IdToken string `json:"id_token"` TokenType string `json:"token_type"` ExpiresIn int `json:"expires_in"` @@ -565,6 +566,7 @@ func main() { http.Error(w, decodeError.Error(), 500) return } + data.RefreshToken = "" if grantType != "refresh_token"{ data.Pce = pce data.IdToken = IdToken