Skip to content

Commit

Permalink
support manual refresh type
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-korotya committed Oct 16, 2023
1 parent a44a162 commit aad6ba1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
6 changes: 0 additions & 6 deletions verifiable/credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ import (
"github.com/pkg/errors"
)

// RefreshService is struct that represents refresh service json-ld document
type RefreshService struct {
ID string `json:"id"`
Type string `json:"type"`
}

// W3CCredential is struct that represents claim json-ld document
type W3CCredential struct {
ID string `json:"id,omitempty"`
Expand Down
15 changes: 15 additions & 0 deletions verifiable/refreshService.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package verifiable

// RefreshServiceType represent refresh service types
type RefreshServiceType string

const (
// ManualRefreshService2018 is the type of refresh service
ManualRefreshService2018 RefreshServiceType = "ManualRefreshService2018"
)

// RefreshService is struct that represents refresh service json-ld document
type RefreshService struct {
ID string `json:"id"`
Type string `json:"type"`
}

0 comments on commit aad6ba1

Please sign in to comment.