Method
__init__
(self, email_service, email: str, email_id: Optional[str], log_fn: Callable[[str], None])
Source from the content-addressed store, hash-verified
| 22 | """将 codex-console 邮箱服务适配成 any-auto-register 预期接口。""" |
| 23 | |
| 24 | def __init__(self, email_service, email: str, email_id: Optional[str], log_fn: Callable[[str], None]): |
| 25 | self.es = email_service |
| 26 | self.email = email |
| 27 | self.email_id = email_id |
| 28 | self.log_fn = log_fn or (lambda _msg: None) |
| 29 | self._used_codes: set[str] = set() |
| 30 | |
| 31 | def wait_for_verification_code(self, email, timeout=60, otp_sent_at=None, exclude_codes=None): |
| 32 | exclude = set(exclude_codes or []) |
Callers
nothing calls this directly
Tested by
no test coverage detected