Skip to content

Commit

Permalink
Revert to original cookie value for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrdoherty committed Nov 25, 2024
1 parent 4b21a6b commit b33ba9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ private Response getSuccessResponse(TwoTuple<ValidatedToken, User> newUser,
// FIXME: cookie sending should be removed/deleted once client has support for header/response body transmission
CookieBuilder bearerTokenCookie = new CookieBuilder(
HttpHeaders.AUTHORIZATION,
"Bearer " + newUser.getFirst().getTokenValue());
newUser.getFirst().getTokenValue());
bearerTokenCookie.setMaxAge(EXPIRATION_3_YEARS_SECS);

redirectUrl = getSuccessRedirectUrl(redirectUrl, newUser.getSecond(), bearerTokenCookie);
Expand Down

0 comments on commit b33ba9d

Please sign in to comment.