Unhappy paths in SMS-Codes setup flow #308
Replies: 2 comments 4 replies
-
Thanks for bringing this up. I think you are correct, there probably isn't a good way to handle either unhappy path currently. While I recommend against SMS authentication (it is by far the worst second factor), I agree that both unhappy paths should be handled better. I'll try to work on this before the next release. I think one of the easiest ways would be if the sms-confirm action fails, remove the sms phone number, and redirect to sms-setup so the user can try again. That should handle both the wrong phone number and code not sent issue. I'd like to use an approach that solves the basic need with the minimum of complexity, even if the user experience is suboptimal. This approach would avoid having to support separate action handling for the back/resend cases. |
Beta Was this translation helpful? Give feedback.
-
Why do you say SMS codes are the worst second factor? Is it because Sim cards can be copied, or because people forward their text messages to their computers? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@jeremyevans —
Thanks again for help on our previous issue of encrypting Account.email. It's working great. I have a new question if you have the time:
Attached is a flow I have in mind for users setting up SMS codes. The happy path, making your account and adding SMS codes works. But I'm having trouble getting two unhappy paths working:
(a) If on the /setup-sms page, one accidentally enters a wrong phone number, one cannot use the browser to go back to re-enter it. The browser's back button keeps redirecting to /sms-confirm. I thought I might be able to use the /sms-disable route, but that didn't seem to work either. Any ideas?
(b) If I entered the correct phone number, but the SMS does not go through (it happens occassionaly that an SMS message is lost), how could I re-send the confirmation code?
Thanks, Winston

Beta Was this translation helpful? Give feedback.
All reactions