FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Dropping Email Required: Migrating to Phone-or-Email Authentication
NewsWeb Development

Dropping Email Required: Migrating to Phone-or-Email Authentication

via Dev.tolinou5182h ago

Dropping Email Required: Migrating to Phone-or-Email Authentication Our registration form said "just enter your phone number," but the backend still rejected requests without an email address. A minor bug, but real users were stuck. Here's how we fixed it. Background Our LINE-integrated e-commerce platform targets users who often lack email addresses or prefer not to provide them. Despite our registration form showing "phone number only," submissions consistently failed with 400 Bad Request errors. The root cause was simple: our frontend sent only phone numbers, but backend validation still enforced email: required . The Solution Frontend Changes (Vue + Vite) Made the email field optional and updated the label accordingly: <input v-model= "form.email" type= "email" placeholder= "Email address (optional)" /> Removed email validation from the client-side submission logic. Backend Changes (Node.js / ts-node) Updated the /api/auth/register endpoint validation: // Before const schema = z .

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles

Transformative New Car Buying focused on the customer paying R3000 less on Any New Car - Guaranteed…
News

Transformative New Car Buying focused on the customer paying R3000 less on Any New Car - Guaranteed…

Medium Programming • 1h ago

QCon London 2026: SBOMs Move From Best Practice to Legal Obligation as CRA Enforcement Looms
News

QCon London 2026: SBOMs Move From Best Practice to Legal Obligation as CRA Enforcement Looms

InfoQ • 1h ago

The great EV pullback: all the obstacles, cancellations, and delays
News

The great EV pullback: all the obstacles, cancellations, and delays

The Verge • 1h ago

News

Seeing types where others don't

Lobsters • 1h ago

Two years later, should you still buy the Sonos Ace? Why my answer is a resounding yes
News

Two years later, should you still buy the Sonos Ace? Why my answer is a resounding yes

ZDNet • 1h ago

Discover More Articles