mirror of
https://github.com/j93es/browser-use-oauth.git
synced 2026-06-04 06:41:53 +09:00
[Refactor] 리팩터링
This commit is contained in:
parent
26b40e0e65
commit
bbd2d6d636
20 changed files with 397 additions and 257 deletions
11
lib/agents/login_google/login_google.py
Normal file
11
lib/agents/login_google/login_google.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
from lib.agents.login_google.prompt import login_google_task, LoginGoogleResponse
|
||||
from lib.browser_use_utils.run_task import run_task
|
||||
|
||||
async def login_google(target_url) -> tuple[bool, str | LoginGoogleResponse | None]:
|
||||
task = login_google_task
|
||||
ReturnModel = LoginGoogleResponse
|
||||
success, response = await run_task(target_url, ReturnModel, task)
|
||||
if not success:
|
||||
return False, None
|
||||
|
||||
return True, response
|
||||
Loading…
Add table
Add a link
Reference in a new issue