Skip to content

Conversation

@jay-sahnan
Copy link
Contributor

Add MFA Handling - TOTP Automation Template

Summary
Adds a new template demonstrating automated MFA (Multi-Factor Authentication) completion using TOTP (Time-based One-Time Password) code generation. Includes TypeScript and Python implementations.

Features

RFC 6238 compliant TOTP generation — generates 6-digit codes using HMAC-SHA1
Automatic MFA completion — extracts TOTP secrets and fills MFA forms without user interaction
Retry logic — handles time window edge cases by regenerating codes
Zero-touch automation — completes MFA challenges programmatically

- Updated MFA-handling Python and TypeScript templates
- Added 'check' script to package.json for running all formatting and linting checks
Copy link
Contributor

@shrey150 shrey150 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pre-approving.

@jay-sahnan qq, this is using Stagehand v2 for Python correct? are you planning to update this template (and others) to Canonical Stagehand in Python when it releases?


## QUICKSTART

1. python -m venv venv
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to use uv here?

🎮 Browserbase: https://www.browserbase.com
💡 Try it out: https://www.browserbase.com/playground
🔧 Templates: https://www.browserbase.com/templates
📧 Need help? support@browserbase.com
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add Discord here?

@@ -0,0 +1,4 @@
stagehand
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would probably pin version numbers here, esp when we launch stagehand v3 for python, could cause issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants