Skip to content

Commit

Permalink
[refactor][#53] AuthProvider convention에 맞게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ProtoSeo committed Jul 20, 2022
1 parent 59686ed commit 98f6fb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

public class OAuth2UserInfoFactory {
public static OAuth2UserInfo getOAuth2UserInfo(String registrationId, Map<String, Object> attributes) {
if (registrationId.equalsIgnoreCase(AuthProvider.github.toString())) {
if (registrationId.equalsIgnoreCase(AuthProvider.GITHUB.toString())) {
return new GithubOAuth2UserInfo(attributes);
} else {
throw new UserException(OAUTH2_LOGIN_UNAUTHORIZED);
Expand Down

0 comments on commit 98f6fb3

Please sign in to comment.