diff options
| -rw-r--r-- | api/handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/handlers.go b/api/handlers.go index 3b09d22..0f3b48b 100644 --- a/api/handlers.go +++ b/api/handlers.go @@ -199,6 +199,6 @@ func (h *Handler) GetToken(w http.ResponseWriter, r *http.Request) { writeJSON(w, http.StatusOK, tokenResp{ AccessToken: acct.AccessToken, - ValidUntil: acct.AccessTokenExpiry.Format(time.RFC3339), + ValidUntil: acct.AccessTokenExpiry.Add(24 * time.Hour).Format(time.RFC3339), }) } |
