Skip to content

Commit

Permalink
removed token generation message
Browse files Browse the repository at this point in the history
  • Loading branch information
heyyakash committed Aug 31, 2024
1 parent f3b803a commit 8dfeca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/internal/handler/auth.handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func LoginUser() gin.HandlerFunc {
token, refreshToken, err := utils.GenerateJWT(user.Uid)
if err != nil {
log.Print(err)
ctx.JSON(http.StatusInternalServerError, utils.ResponseGenerator("Couldn't Generate Token", false))
ctx.JSON(http.StatusInternalServerError, utils.ResponseGenerator("Some Internal Error Occurred", false))
return
}
cookie := utils.CreateCookie("token", token, time.Now().Add(1*time.Hour))
Expand Down

0 comments on commit 8dfeca3

Please sign in to comment.