Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
IntegrationsNovember 22, 20265 min read

Passwordless Magic Link Login

Type your email, tap the link, you are in. Magic links remove passwords entirely, but email delivery, link scanners and in-app browsers decide whether they feel magic or broken.

Startbase Team
Editorial ink illustration of a brass skeleton key tied to an envelope dropping through a door's mail slot, the key in ember orange

Key takeaways

  • Magic links are already on in Startbase Cloud's email sign-in; the work is the redirect URLs, the email template and the sender.
  • Send auth emails from your own verified domain before launch: deliverability is the whole feature.
  • Corporate link scanners and in-app browsers can break links, so design a landing step or a one-time code as the fallback.

Magic link login lets people sign in by entering their email and clicking a one-time link sent to their inbox: no password to create, forget or leak. Behind the scenes the auth system emails a short-lived, single-use link; clicking it proves the person controls the address and starts a session. On Startbase Cloud, email sign-in with password and magic link is on by default, so there is no third-party account to set up. What remains is the part that decides whether it works in practice: allowed redirect URLs, a clear email template, and sending from your own domain.

When magic links fit, and when they do not

  • Great for: apps people open every few days or weeks (a club schedule, a client portal, a booking history, a waitlist dashboard), where a password would be forgotten anyway; and sign-up flows where every extra field loses people.
  • Weaker for: apps people open many times a day on a shared computer, kiosk logins, and audiences who do not have their email on the same device. For those, offer a password or Google alongside.
  • Session length matters. If sessions last weeks, users rarely see the email at all. If they expire daily, every visit becomes an inbox trip and the feature feels like a chore.

How the flow works

  1. 01The user enters their email on your sign-in screen. Your app asks the auth system to send a magic link, including the page to return to.
  2. 02The auth system creates a one-time token, valid for a limited time (typically an hour), and emails a link containing it using your Magic link template.
  3. 03The user taps the link. It goes to the auth service, which checks the token is valid, unused and unexpired, then redirects to your app with the session.
  4. 04Your app picks up the session and lands the user on the page they asked for. New addresses get an account created on first use, unless your app is in Invite only mode.

The redirect in step 3 only goes to addresses you allow. In the URLs panel of Sign-in settings, set the Site URL to your main published address and add every address the link may return to: the startbase.app address, your custom domain, and specific pages such as /welcome. A missing entry sends people to the Site URL instead of where they expected, or to an old preview.

The screen between request and click

The moment after "Send my link" is where magic links win or lose people. Replace the form with a clear waiting state: "We sent a link to maya@example.com", a button to open common webmail sites, a Resend button that unlocks after a short cooldown, and a "Wrong address?" link back to the form. If the user comes back to the tab after signing in from the email on the same device, notice the new session and move them on automatically, so they are not left staring at "check your inbox" when they are already signed in.

The email itself

Startbase Cloud's Emails section lets you edit the Magic link template's subject and HTML body. Keep the {{ .ConfirmationURL }} placeholder intact: removing it breaks the link, and clearing a field reverts it to the default. A good magic link email is short:

  • Subject: "Your sign-in link for Northside Climbing". Name the app; "Magic link" alone looks like phishing.
  • One button: "Sign in", with the plain link underneath for clients that strip buttons.
  • Context: "This link works once and expires in 1 hour. If you did not ask for it, you can ignore this email." Mention the time only if it matches your setting.
  • No marketing. Promotions in an auth email hurt deliverability and trust.

Then fix the sender. Out of the box, auth emails come from a built-in sender, which is fine for building. Before launch, connect your own domain through Resend in the Emails section (a free Resend account and API key, plus the DNS records Startbase shows you), and choose "Use this domain for auth emails". Mail from yourapp.com lands in inboxes far more reliably than mail from a shared sender, and users recognize it. Use a subdomain such as mail.yourapp.com.

A brief you can paste

Make magic link the main sign-in method. The sign-in screen has one email field and a Send my link button; after sending, show "Check your inbox" with the address, a Resend button disabled for 60 seconds, and a tip to check spam. Pass the current page as the return address so users land where they started. Point the email's button at a /auth/confirm page in our app that shows a Continue button and only completes sign-in on that click, so email link scanners cannot use the link up. If the link is expired or already used, show a friendly page with a button to send a new one. Rewrite the Magic link email template: subject "Your sign-in link for [app name]", one Sign in button, the plain link below, and a line saying it works once and expires in an hour. Keep the template placeholders sign-in needs working, and tell me what you changed. Keep Google sign-in as a second option.

Pitfalls

  • Link scanners eat the link. Many company mail systems open every link in an email to check it for malware. If the link signs in on the first request, the scanner uses it up and the real user gets "link expired". A landing page with a Continue button (completing sign-in only on that click) or a one-time code solves it. The auth system behind Startbase Cloud supports a code placeholder ({{ .Token }}) in the template, so the email can carry a six-digit code under the button for exactly this case.
  • Opening in a different browser. People request a link on their laptop and tap it on their phone, or tap it inside an email app's built-in browser. Depending on how sign-in is configured, the link may only complete in the browser that requested it. Tell users on the "check your inbox" screen to open it on the same device, and offer the code as the cross-device path.
  • Spam folders. The single biggest failure. Use your own verified domain, keep the email plain, and do not send marketing from the same address. Sending emails from your app covers SPF, DKIM and warm-up.
  • Resend abuse. Without a cooldown, a bot can make your app mail a victim repeatedly. Keep a 60-second minimum between requests for the same address, and protect the form as described in bot protection and captchas.
  • Revealing who has an account. "No account with that email" tells strangers who your users are. Always answer "If that address can sign in, we have sent a link."
  • Mobile apps. In an Expo app the link must open the app, not a website, which needs a deep link added to the allowed redirect URLs. Test on a real phone before you rely on it.

Frequently asked questions

Are magic links secure?

They are as secure as the user's email account, which already controls password resets anyway. Links are single-use and expire, and there is no password to reuse or leak. Add a second factor for high-risk apps.

Why does my magic link say it is expired or invalid?

Common causes: the link was already used, often by a corporate email scanner; it expired; or it was opened in a different browser from the one that requested it. A landing page with a Continue button or a one-time code fixes the first and last cases.

Do I need a separate service for magic link login?

Not on Startbase Cloud: email sign-in with magic links is built into the auth system and on by default. You only need a Resend account if you want auth emails sent from your own domain, which is recommended before launch.

How do I stop magic link emails going to spam?

Send from your own verified domain with SPF and DKIM set up, keep the email short with no marketing content, and name your app in the subject line.

On this page

  • When magic links fit, and when they do not
  • How the flow works
  • The screen between request and click
  • The email itself
  • A brief you can paste
  • Pitfalls

Keep reading

More in Integrations
Editorial ink illustration of a folded paper street map with a brass compass and pushpins, the center pushpin in ember orange
IntegrationsNovember 22, 2026

How to add a map to your app

A map is two jobs: drawing tiles in the browser and turning addresses into coordinates. One key can be public, the other never should be.

6 min read
Editorial ink illustration of a carrier pigeon on a windowsill with a rolled note tied to its leg, the note in ember orange
IntegrationsNovember 22, 2026

How to send SMS from your app

Sending one text is ten lines of code. Sending texts people agreed to, that arrive, and that nobody can abuse, is the real work.

5 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.