Skip to content

Automate browser based workflows with AI

shu/fix caching with totp identifier or totp url (#4191)

Shuchang Zheng54a09527d2af
diff --git a/skyvern/services/script_service.py b/skyvern/services/script_service.py
index 3859ed521..4332344dd 100644
--- a/skyvern/services/script_service.py
+++ b/skyvern/services/script_service.py
@@ -1580,6 +1580,11 @@ async def login(
model=model,
)
prompt = _render_template_with_label(prompt, cache_key)
+ if totp_url:
+ totp_url = _render_template_with_label(totp_url, cache_key)
+ if totp_identifier:
+ totp_identifier = _render_template_with_label(totp_identifier, cache_key)
+
# set the prompt in the RunContext
context = skyvern_context.ensure_context()
context.prompt = prompt