@@ -220,7 +220,7 @@ func (api *API) postAuthLocalSigninHandler() service.Handler {
220
220
}
221
221
222
222
// Set a cookie with the jwt token
223
- api .SetCookie (w , service .JWTCookieName , jwt , session .ExpireAt )
223
+ api .SetCookie (w , service .JWTCookieName , jwt , session .ExpireAt , true )
224
224
225
225
// Prepare http response
226
226
resp := sdk.AuthConsumerSigninResponse {
@@ -353,7 +353,7 @@ func (api *API) postAuthLocalVerifyHandler() service.Handler {
353
353
local .CleanVerifyConsumerToken (api .Cache , consumer .ID )
354
354
355
355
// Set a cookie with the jwt token
356
- api .SetCookie (w , service .JWTCookieName , jwt , session .ExpireAt )
356
+ api .SetCookie (w , service .JWTCookieName , jwt , session .ExpireAt , true )
357
357
358
358
// Prepare http response
359
359
resp := sdk.AuthConsumerSigninResponse {
@@ -521,7 +521,7 @@ func (api *API) postAuthLocalResetHandler() service.Handler {
521
521
local .CleanResetConsumerToken (api .Cache , consumer .ID )
522
522
523
523
// Set a cookie with the jwt token
524
- api .SetCookie (w , service .JWTCookieName , jwt , session .ExpireAt )
524
+ api .SetCookie (w , service .JWTCookieName , jwt , session .ExpireAt , true )
525
525
526
526
// Prepare http response
527
527
resp := sdk.AuthConsumerSigninResponse {
0 commit comments