From df9847b0c1a69904d4a76800283aca1cf13c1e3b Mon Sep 17 00:00:00 2001 From: Ilya Date: Thu, 21 Sep 2023 16:16:56 +0300 Subject: [PATCH] proposal with list of refresh ids --- protocol/credentials.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/protocol/credentials.go b/protocol/credentials.go index a3723e7..1bf8348 100644 --- a/protocol/credentials.go +++ b/protocol/credentials.go @@ -149,5 +149,11 @@ type CredentialRefreshMessage struct { // CredentialRefreshMessageBody is msg body for refresh message type CredentialRefreshMessageBody struct { - ID string `json:"id"` + Refresh []Refresh `json:"refresh"` +} + +// Refresh is struct the represents refresh request +type Refresh struct { + ID string `json:"id"` + Reason string `json:"reason"` }