Skip to content

Commit

Permalink
Return cookies to being secure
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Jun 17, 2024
1 parent a461910 commit 9d18197
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/puck/web/auth.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,7 @@ fn set_signed_user_id_cookie(
) -> Response {
<<int.to_string(user_id):utf8>>
|> crypto.sign_message(<<signing_secret:utf8>>, crypto.Sha256)
// TODO: re-enable secure cookies
|> response.set_cookie(response, auth_cookie, _, cookie.defaults(http.Http))
|> response.set_cookie(response, auth_cookie, _, cookie.defaults(http.Https))
}

pub fn get_user_from_session(
Expand Down

0 comments on commit 9d18197

Please sign in to comment.