added time to cookie

This commit is contained in:
ACoolName 2024-05-25 13:29:16 +03:00
parent 5d57608fb6
commit 5f5dd0f618

View File

@ -188,7 +188,7 @@ func (con Connection) signIn(c *gin.Context) {
return
}
c.SetCookie("auth", signedToken, -1, "", ".games.acooldomain.co", true, false)
c.SetCookie("auth", signedToken, int(time.Hour)*24*30, "", ".games.acooldomain.co", true, false)
c.IndentedJSON(http.StatusOK, signedToken)
}