diff --git a/BE/src/main/java/org/team4/airbnb/auth/config/MemoryProviderRepository.java b/BE/src/main/java/org/team4/airbnb/auth/config/MemoryProviderRepository.java new file mode 100644 index 000000000..68c4ed0be --- /dev/null +++ b/BE/src/main/java/org/team4/airbnb/auth/config/MemoryProviderRepository.java @@ -0,0 +1,15 @@ +package org.team4.airbnb.auth.config; + +import java.util.Map; +import lombok.RequiredArgsConstructor; + +@RequiredArgsConstructor +public class MemoryProviderRepository { + + private final Map providers; + + public OauthProvider findByProviderName(String name) { + OauthProvider oauthProvider = providers.get(name); + return oauthProvider; + } +}