1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-21 23:05:48 +01:00

Omit token expiration if not provided.

A token with empty expiration is useless anyway.
This commit is contained in:
Juliusz Chroboczek 2024-10-25 17:49:00 +02:00
parent bdee6286e6
commit 54b4759300

View file

@ -20,7 +20,7 @@ type Stateful struct {
Group string `json:"group"`
Username *string `json:"username,omitempty"`
Permissions []string `json:"permissions"`
Expires *time.Time `json:"expires"`
Expires *time.Time `json:"expires,omitempty"`
NotBefore *time.Time `json:"not-before,omitempty"`
IssuedAt *time.Time `json:"issuedAt,omitempty"`
IssuedBy *string `json:"issuedBy,omitempty"`