store totp_identifier to credentials with fallback for login runs (#4154)

This commit is contained in:
Marc Kelechava
2025-12-01 16:19:37 -08:00
committed by GitHub
parent acce1c869d
commit 7100b7e004
6 changed files with 49 additions and 16 deletions

View File

@@ -4515,6 +4515,7 @@ class AgentDB:
totp_type: str,
card_last4: str | None,
card_brand: str | None,
totp_identifier: str | None = None,
) -> Credential:
async with self.Session() as session:
credential = CredentialModel(
@@ -4525,6 +4526,7 @@ class AgentDB:
credential_type=credential_type,
username=username,
totp_type=totp_type,
totp_identifier=totp_identifier,
card_last4=card_last4,
card_brand=card_brand,
)