Comment by throw03172019

Comment by throw03172019 3 days ago

6 replies

The 2FA via email case is great. I recently had to build a browser automation workflow that required 2FA. I ended up using Zapier to monitor email inbox and then extract the code and send back to our API. It was a bit slow.

ckenst 3 days ago

Why didn't you just use something like Mailinator? They specialize in this exact thing. Gives you an API to grab links and everything. That's what I use.

Haakam21 3 days ago

Yup plus webhooks are overkill for this. Need to set up a public HTTP server and pass messages to your agents. With websockets you can open connection right from your agent and close it in seconds once the 2FA code is delivered.

trollbridge 3 days ago

... you had to use Zapier to extract an email from an inbox?

  • iamacyborg 3 days ago

    Google API scopes for email are pretty restrictive, which is generally a good thing from a security perspective.

    • trollbridge 2 days ago

      Retrieving e-mail using the Google API is just about trivial. You can generate a code snippet in Grok or what have you in about 30 seconds to do it.

      Alternatively you can set up IMAP access.

      Obviously you have to be able to configure proper OAuth2 keys to do this, but again, that's another 30 seconds spent in Grok/GPT/Claude/whatever.

      • iamacyborg 2 days ago

        Most gmail scopes are restricted which means you’ll need to pass a CASA assessment to have proper production access to them.