Commit 54b47593 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Omit token expiration if not provided.

A token with empty expiration is useless anyway.
parent bdee6286
......@@ -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"`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment