Skip to content

Commit 85f8365

Browse files
committed
payload: use pointer to Time instead of value
This fix numeric dates not being omitted.
1 parent 68e0929 commit 85f8365

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

payload.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ type Payload struct {
55
Issuer string `json:"iss,omitempty"`
66
Subject string `json:"sub,omitempty"`
77
Audience Audience `json:"aud,omitempty"`
8-
ExpirationTime Time `json:"exp,omitempty"`
9-
NotBefore Time `json:"nbf,omitempty"`
10-
IssuedAt Time `json:"iat,omitempty"`
8+
ExpirationTime *Time `json:"exp,omitempty"`
9+
NotBefore *Time `json:"nbf,omitempty"`
10+
IssuedAt *Time `json:"iat,omitempty"`
1111
JWTID string `json:"jti,omitempty"`
1212
}

0 commit comments

Comments
 (0)