[SKY-6] Backend: Enable 2FA code detection without TOTP credentials (#4786)
This commit is contained in:
14
skyvern/forge/sdk/notification/factory.py
Normal file
14
skyvern/forge/sdk/notification/factory.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from skyvern.forge.sdk.notification.base import BaseNotificationRegistry
|
||||
from skyvern.forge.sdk.notification.local import LocalNotificationRegistry
|
||||
|
||||
|
||||
class NotificationRegistryFactory:
|
||||
__registry: BaseNotificationRegistry = LocalNotificationRegistry()
|
||||
|
||||
@staticmethod
|
||||
def set_registry(registry: BaseNotificationRegistry) -> None:
|
||||
NotificationRegistryFactory.__registry = registry
|
||||
|
||||
@staticmethod
|
||||
def get_registry() -> BaseNotificationRegistry:
|
||||
return NotificationRegistryFactory.__registry
|
||||
Reference in New Issue
Block a user