Skip to content

Commit

Permalink
Deploy : Jwt refreshing cookie fix
Browse files Browse the repository at this point in the history
  • Loading branch information
404-not-foundl committed Mar 28, 2024
1 parent a9ae0dd commit ddd3db5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ public Mono<Void> filter(@NonNull ServerWebExchange exchange, @NonNull WebFilter
return jwtManager.checkAccessToken(exchange)
.flatMap(internalId -> {
if ("null".equals(internalId)) {
System.out.println("FAILED");
exchange.getResponse().setStatusCode(HttpStatus.UNAUTHORIZED);
return exchange.getResponse().setComplete();
} else {
System.out.println("SUCCESS");

ServerHttpRequest.Builder requestBuilder = exchange.getRequest().mutate();

requestBuilder.header(jwtManager.INTERNAL_ID_HEADER, internalId);
Expand Down

0 comments on commit ddd3db5

Please sign in to comment.