feat(api): make /user/token return more details
1 files changed, 7 insertions(+), 1 deletions(-) M api/handlers/usertoken.go
M api/handlers/usertoken.go => api/handlers/usertoken.go +7 -1
@@ 53,5 53,11 @@ func GenerateToken(c *gin.Context) { return } - c.JSON(http.StatusOK, gin.H{"token": token, "id": user.ID}) + c.JSON(http.StatusOK, gin.H{ + "token": token, + "id": user.ID, + "created_at": user.CreatedAt, + "updated_at": user.UpdatedAt, + "username": user.Username, + }) }