News for hackers. Stuff that matters.
Re:Ask HN: Passwordless logins with email / phone based auth... by mtmail on Friday February 09, 2018 @06:14PM (#16344653)
I've built something like this 10 years ago for a search engine. You were able to save searches and results. Sign in just had the email field which would send you a session link, the expiry was 30 days after last action I think. The average user didn't mind, but also didn't always understand. Users tried to use it at home and workplace so we needed to allow multiple sessions. Users wanted to share their results and I guess within a family users were usually sending each other the username&password. After all it was an optional feature, used by less than 1% of the users so we couldn't tell if adoption would've been different if we had "normal" passwords. Later we tried Facebook login and got enough hate-mail so stop the whole feature.

Personally I don't mind passwords, that's what password managers are for.

Re:Ask HN: Passwordless logins with email / phone based auth... by nickjj on Friday February 09, 2018 @06:28PM (#16344731)
For my use case, account sharing isn't something anyone would want to do, and I totally agree about not even thinking about using social logins (I hate them too).

The multiple sessions is a very good point that I didn't think about.

I think to properly implement passwordless logins you would end up still needing a DB lookup on each login because you would need a way to invalidate / blacklist tokens on the server side (for disabling accounts on demand).

So with that said, multiple sessions is likely a solved problem by just seeing if a token is already set for that user, and if it is, write that one back to their other device's cookies instead of generating a new one. Seems fool proof?

My reason for wanting to ditch passwords is mainly to protect users. I've coded an end to end password based login solution in like 4 different frameworks about a dozen times so I'm cool with doing it either way, but I do really think passwordless logins have real advantages outside of just eliminating crappy passwords.