DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

2f168059a3c60b799035c55add752be66cfa70a2 — Jonni Liljamo 1 year, 9 months ago 426d121
/token will now return the user ID as well
1 files changed, 1 insertions(+), 1 deletions(-)

M sdbapi/handlers/usertoken.go
M sdbapi/handlers/usertoken.go => sdbapi/handlers/usertoken.go +1 -1
@@ 53,5 53,5 @@ func GenerateToken(c *gin.Context) {
		return
	}

	c.JSON(http.StatusOK, gin.H{"token": token})
	c.JSON(http.StatusOK, gin.H{"token": token, "id": user.ID})
}