wait-for-secrets icon indicating copy to clipboard operation
wait-for-secrets copied to clipboard

[feature request] could the OTP input be autofocus?

Open ghiscoding opened this issue 6 months ago • 3 comments

I have no idea if this is possible or not but 1 thing that I find really interesting is that if the input could be autofocused? I'm asking because the OTP that I use is only lasting 30sec and sometime I lose 5-10sec to click and focus on the input before I can start typing it. So... it would be awesome if the input would autofocus, I would lose a lot less time and at the same time avoid having my OTP to timeout too early

ghiscoding avatar Jul 11 '25 01:07 ghiscoding

This is a fine request, but an OTP should last a full 1-2 minutes, and be usable for another 1-2 minutes after your app stops showing it.

ljharb avatar Jul 11 '25 05:07 ljharb

It only last 30sec in Ms Authenticator app, I don't think there's any way to change that value either. Regardless an autofocus would be so much more useful. 🚀

ghiscoding avatar Jul 11 '25 13:07 ghiscoding

It probably depends on the service the OTP is for - all my dozens of Google Authenticator OTPs last quite a bit longer.

ljharb avatar Jul 11 '25 15:07 ljharb