You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/$USER/bin/totp", line 50, in <module>
args.print_only or pyperclip.copy(token)
pyperclip.PyperclipException: only str, int, float, and bool values can be copied to the clipboard, not bytes
The text was updated successfully, but these errors were encountered:
danielp96
added a commit
to danielp96/totp-auth
that referenced
this issue
Jul 31, 2023
Decode token from bytes to UTF-8 before printing/copying to clipboard.
This allows printing without the b'TOKEN' syntax of python and pyperclip to copy string to clipboard (raw bytes not supported).
Fixestwilfong#2
The script crashes with the error:
The text was updated successfully, but these errors were encountered: