We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c372571 commit e1c8c36Copy full SHA for e1c8c36
cmd/api/tokens.go
@@ -69,7 +69,7 @@ func (app *application) createAuthenticationTokenHandler(c echo.Context) error {
69
return c.JSON(http.StatusInternalServerError, envelope{"error": "internal server error"})
70
}
71
72
- return c.JSON(http.StatusCreated, envelope{"token": token.Plaintext, "expiry": expiry})
+ return c.JSON(http.StatusCreated, envelope{"token": token.Plaintext, "expiry": expiry.Unix()})
73
74
75
func (app *application) createPasswordResetTokenHandler(c echo.Context) error {
0 commit comments