Skip to content

Commit

Permalink
try something
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Jul 25, 2020
1 parent 2f7f410 commit 9a51548
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Auth.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function addtoken!(resp::HTTP.Response, user::User)
keyid = first(first(JWT_AUTH_KEYS[].keys))
sign!(jwt, JWT_AUTH_KEYS[], keyid)
HTTP.setheader(resp, "Set-Cookie" => "$JWT_TOKEN_COOKIE_NAME=$(join([jwt.header, jwt.payload, jwt.signature], '.')); Expires=$(Dates.format(exp, DATE_FORMAT))")
HTTP.setheader(resp, "Cache-Control" => "private")
return
end

Expand Down

0 comments on commit 9a51548

Please sign in to comment.