Skip to content

Commit

Permalink
minor cookie conf changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ARUMANDESU committed Jun 12, 2024
1 parent f66ce71 commit 71b61a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/handler/user/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func (h *Handler) setAccessTokenCookie(c *gin.Context, token string) {

func (h *Handler) configureCookie(cookie *http.Cookie) {
// Set Secure to true if environment is "prod" or "dev", false otherwise
cookie.Secure = h.cfg.Env == "prod" || h.cfg.Env == "dev"
cookie.Secure = h.cfg.Env == "prod"

// || h.cfg.Env == "dev" , add after
if h.cfg.Env == "prod" {
Expand Down

0 comments on commit 71b61a9

Please sign in to comment.