Skip to content

Commit 9f66e4e

Browse files
committed
fix: allow secure cookie with httpOnly flag in refresh token
1 parent 5cae11c commit 9f66e4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

handler/http/discord.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ func (d *discordHandler) RefreshToken(c echo.Context) error {
7575
cookie.Secure = !isLocalhost
7676
cookie.Domain = d.cfg.Discord.RedirectDomain
7777
cookie.Path = "/"
78+
cookie.HttpOnly = true
7879
cookie.SameSite = http.SameSiteLaxMode
7980

8081
c.SetCookie(cookie)

0 commit comments

Comments
 (0)