Skip to content

Commit 11dcbcd

Browse files
Clean up
1 parent e24ffbb commit 11dcbcd

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

deps/rabbitmq_management/src/rabbit_mgmt_login.erl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ login(<<"POST">>, Req0=#{scheme := Scheme}, State) ->
2626
http_only => true,
2727
path => ?OAUTH2_ACCESS_TOKEN_COOKIE_PATH,
2828
max_age => 30,
29-
% expires => os:system_time(millisecond) + 30000,
3029
same_site => strict
31-
},
30+
},
3231
SetCookie = cowboy_req:set_resp_cookie(?OAUTH2_ACCESS_TOKEN_COOKIE_NAME, AccessToken, Req1,
3332
case Scheme of
3433
<<"https">> -> CookieSettings#{ secure => true};

deps/rabbitmq_management/src/rabbit_mgmt_oauth_bootstrap.erl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ set_token_auth(AuthSettings, Req0) ->
4949
cowboy_req:set_resp_cookie(
5050
?OAUTH2_ACCESS_TOKEN_COOKIE_NAME, <<"">>, Req0, #{
5151
max_age => 0,
52-
% expires => os:system_time(millisecond) - 30000,
5352
http_only => true,
5453
path => ?OAUTH2_ACCESS_TOKEN_COOKIE_PATH,
5554
same_site => strict

0 commit comments

Comments
 (0)