assume-role-cli icon indicating copy to clipboard operation
assume-role-cli copied to clipboard

Open /dev/tty instead of stdin for reading code

Open dansimau opened this issue 7 years ago • 0 comments

Previously, we were opening stdin for reading the MFA code. However, this causes an issue when we want to use stdin for something else, e.g. as a git helper (see #4).

Instead, we open the current terminal at /dev/tty.

Fixes #4.

dansimau avatar Oct 18 '18 16:10 dansimau