Skip to content

Commit

Permalink
refactory
Browse files Browse the repository at this point in the history
  • Loading branch information
dukbong committed Apr 27, 2024
1 parent aa22aeb commit 19f0aa2
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -95,10 +95,12 @@ public Mono<Void> removeAuthorizedClient(String clientRegistrationId, Authentica
}

private Map<String, OAuth2AuthorizedClient> getAuthorizedClients(WebSession session) {
if (session == null) {
return new HashMap<>();
}
return session.getAttribute(this.sessionAttributeName);
if (session == null) {
return new HashMap<>();
}
Map<String, OAuth2AuthorizedClient> authorizedClients = session.getAttribute(this.sessionAttributeName);
return authorizedClients != null ? authorizedClients : new HashMap<>();
}


}

0 comments on commit 19f0aa2

Please sign in to comment.