fix: oauth client registration

This commit is contained in:
Timothy Jaeryang Baek
2025-10-01 15:15:24 -05:00
parent b1c196ed83
commit e493562735
2 changed files with 19 additions and 11 deletions
+9 -1
View File
@@ -615,8 +615,16 @@ class OAuthManager:
self.app = app
self._clients = {}
for _, provider_config in OAUTH_PROVIDERS.items():
provider_config["register"](self.oauth)
if "register" not in provider_config:
log.error(
f"OAuth provider {provider_config['name']} missing register function"
)
continue
client = provider_config["register"](self.oauth)
self._clients[provider_config["name"]] = client
def get_client(self, provider_name):
if provider_name not in self._clients: