diff options
Diffstat (limited to 'lib/paseto/payload.go')
| -rw-r--r-- | lib/paseto/payload.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/paseto/payload.go b/lib/paseto/payload.go index af889d77..346356f7 100644 --- a/lib/paseto/payload.go +++ b/lib/paseto/payload.go @@ -29,9 +29,9 @@ var ( // The claims follow RFC 7519 that includes issuer, subject, audience, // expiration time, not-before time, issued-at, and ID. type Payload struct { - // Data defines actual information to be send in message. + // Data defines additional information to be send in message. // Data must be JSON encodable. - Data any `json:"data"` + Data any `json:"data,omitempty"` // Issuer defines the peer ID that issued the payload. Issuer string `json:"iss,omitempty"` |
