/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}) }