Skip to content

Instantly share code, notes, and snippets.

@davehughes
davehughes / README.md
Last active February 18, 2019 05:44
CLI helper for multifactor authentication

What's the point?

Stop fumbling for your phone every time you need to log in to a site with multi-factor authentication. Just run mfa token <profile> | pbcopy and paste the verification code.

(You do need to be able to grab the TOTP key for the site you're logging into, which is usually available somewhere near the QR code when setting up MFA).

Setup:

  • Install oathtool for your platform.