BlogArticle

How hard can it be to remove a password from checkout?

From an apparently simple change to a new authentication flow. How we ended up choosing OTP, and what we learned along the way.

Hi everyone — and welcome to my first blog post!

I’d been meaning to start a blog for a while, but for one reason or another I kept putting it off.

When you talk through a technical problem with a colleague, you can say something dumb, correct yourself, and move on. When you write something and publish it, it stays there. Exposed to opinions, criticism, comparisons — and, inevitably, keyboard warriors.

Still, in the end I thought: why not?

I like the idea of having a space of my own to share what I learn working in software development, tell stories about problems I’ve faced, and maybe compare notes with people who solved them in completely different ways.

I don’t know yet which direction this blog will take. In theory I’d like to focus mostly on software engineering, the challenges I hit at work, and the decisions behind building a product. But I won’t rule out the occasional detour into something completely different. We’ll see!

It all started with a checkout

A few months ago, toward the end of July, at Wishraiser we shipped a new feature that lets users authenticate with an OTP — a One-Time Password.

But let’s take a step back, because it actually started from a problem that had little to do with authentication.

Together with the Product Manager, we’d spotted an opportunity to improve our checkout: simplify the donation process by reducing the steps and the information we asked new donors for.

When a new donor landed on checkout, they had to enter several details to complete the donation and create their account.

So we started reviewing the required fields, trying to make the experience as simple as possible.

The goal was fairly straightforward: reduce the friction between wanting to donate and actually completing the donation.

Among the fields we decided to remove was the password.

An apparently trivial change, right? Just take an input out of the form, update a few validations, and you’re done.

Well, not quite.

Removing the password at registration also meant rethinking how new donors would sign in later.

We could have kept traditional login and asked users to set a password later, maybe through a recovery flow.

Technically feasible, sure. But it would have meant moving the problem instead of solving it — adding an extra step in exactly the experience we were trying to simplify.

So we decided to move toward a passwordless authentication system.

Before going into detail, a quick rundown of the alternatives.

  • Traditional password: the user signs in with email and password, which they have to remember or store in a password manager.
  • Magic Link: the user receives an email with a temporary link that lets them authenticate without entering a password.
  • One-Time Password (OTP): the user receives a temporary code, usable once, to enter directly in the authentication UI.

A small curiosity about OTP

While looking up a bit of OTP history, I came across a reference to 1917 and to Gilbert Vernam and Joseph Mauborgne.

It was actually about the One-Time Pad — a cryptographic method based on single-use random keys — not the One-Time Password we use for authentication today.

Two different concepts that share the same acronym. If you want to dig into the history, I found this article.

Once we’d decided to drop the password from registration, we mainly had two options: Magic Link and OTP.

Both would have let us introduce passwordless authentication, but they came with interesting trade-offs.

One of the first issues we considered was how some email clients and security systems behave.

Some email services automatically scan links in messages to detect potentially dangerous URLs.

That can mean the link is opened before the user has even read the email.

Picture this: the user requests a Magic Link, the backend generates a one-time token and sends the email, but a security system visits the link automatically.

If opening the link consumes the token, by the time the user tries to use it it’s already expired.

Of course the problem is solvable — for example by not consuming the token on a plain GET and requiring an explicit confirmation instead.

But it’s still an extra edge case to handle.

Switching browsers

Another aspect was the user experience.

Imagine requesting a Magic Link from our site, opening the email on your phone, and tapping the link.

The email client might open it in a different browser, or in a new tab.

You could end up with two separate browsing contexts: the one where you requested access, and the one where you completed authentication.

The result? The session might be created correctly in the second context, while the first still shows you as logged out.

There are solutions here too — sync mechanisms or polling — but they would have added more complexity.

And the question we asked ourselves was: do we really need that?

Why we chose OTP

In the end we decided to use an OTP code sent by email.

The main advantage, in our case, was continuity of experience.

The user requests the code, opens their inbox, copies it, and enters it directly in the original interface.

They don’t necessarily have to switch browsers, they aren’t redirected to another page, and we don’t have to handle returning from an external link.

Yes, we still depend on email delivery, and typing the code is an extra step compared to clicking a link.

But given our needs, it felt like the best compromise.

There was another interesting consideration too: separating the authentication code from the channel used to deliver it.

Today we send the OTP by email, but in the future we could consider other channels, like SMS, without necessarily redesigning the whole authentication experience.

Simple for the user, a bit less for us

Once we’d chosen the solution, the most interesting part remained: integrating it into the existing authentication system.

Because introducing a new login method isn’t just generating a code and verifying it.

You have to consider existing users, sessions, security, and all those edge cases that tend to show up when a feature meets real users.

New users and existing users

The first decision was to leave existing accounts unchanged.

Anyone who already had a password would keep signing in the traditional way.

We didn’t want to force a change on people already using the product.

For new donors, the behavior would be different.

At checkout, no password was required anymore. Once the donation was complete, the user was already authenticated and could keep using the site.

But what happened when the session expired, or when the user logged out?

That’s when the new OTP flow kicked in.

The user entered their email, received a temporary code, and once it was verified they could access their account again.

That let us introduce the new system without changing how existing accounts worked.

Authentication and email verification

Another interesting aspect was email verification.

In our flow, when a new donor completed a donation they were authenticated immediately — but they hadn’t yet proven they actually owned the email inbox they’d used.

That’s an important distinction.

Entering an email address during registration doesn’t necessarily mean that address belongs to them.

When they correctly use an OTP received by email, though, they prove they have access to that inbox at that moment.

So we decided to use OTP verification to confirm the email address on the account as well.

That way, on the first OTP login, the user completed both authentication and email verification at once.

Security: account enumeration and rate limiting

We also had to protect the flow from abuse.

Starting with account enumeration: if an endpoint returns different responses depending on whether an email exists, it can be used to discover which accounts are registered on the platform.

So we used generic responses — both in the API and in the UI — regardless of whether the account exists.

If the address isn’t registered, the code isn’t sent, but that information isn’t exposed to the client.

Another concern was brute forcing and abuse of OTP requests.

So we introduced rate limiting to cap how often a new code can be requested, temporarily blocking requests that exceed the thresholds.

In an OTP system it’s also important to limit verification attempts, not just send attempts: a short code without proper attempt limits is vulnerable to brute force.

There are other countermeasures, of course — CAPTCHAs, for example — but the point is finding the right balance between security and user experience.

After all, we were trying to remove friction from checkout, not turn login into an obstacle course.

Shipping doesn’t mean you’re done

Once implementation was complete, one last piece remained: understanding how the new flow would behave in production.

So we set up tracking for OTP authentication events, to monitor how it worked and measure adoption.

Useful signals include the number of OTP requests, completed logins, drop-offs, and how often codes are resent.

That data can help surface issues that didn’t show up during development and testing.

What I’m taking away from this

Looking back at this project, what makes me smile is that it all started with the decision to remove a field from a form.

A simple password field.

Except behind that field sat authentication, compatibility with existing accounts, security, email verification, and monitoring.

In other words, the classic “let’s just remove this field — how hard can it be?”.

But that’s also what I find interesting about software development: an apparently small change can hide much bigger decisions.

And the most sophisticated solution isn’t always the right one.

In our case we could have chosen Magic Links and dealt with all the issues around different browsing contexts.

But why add extra complexity when we had an alternative that fit our needs better?

In the end, I think an important part of a Software Engineer’s job is exactly this: not only finding technically sound solutions, but understanding which ones actually make sense for the product.

I’d say that’s enough for my first blog post.

If you made it this far, thanks for reading. And if you’ve faced a similar problem and chose a different solution, I’d love to hear your perspective.

See you next time!

Contact

Let's talk.

If you want to discuss a product, an idea, or an opportunity, message me on LinkedIn.