Skip to content
MyAppBuilder
StableGuide

Sign-up and sign-in

Your app comes with ready-made Sign in (/login) and Sign up (/signup) screens. They use whichever methods you enabled and need nothing built. If you want sign-in inside your own page design, drop the Login Form component anywhere.

Sign-up and sign-in

Your app comes with ready-made Sign in (/login) and Sign up (/signup) screens. They use whichever methods you enabled and need nothing built. If you want sign-in inside your own page design, drop the Login Form component anywhere.

When to use

  • /login and /signup: the default for every app; protected pages redirect to /login automatically.
  • Login Form component: a sign-in card on a landing page, a customer portal home, or a page with extra text and branding around it.
  • Add users yourself: when sign-up is off and you invite customers or staff individually.

The built-in screens

ScreenPathShows
Sign in/loginEmail, Password (if enabled), Email me a sign-in link (if magic link is enabled), Continue with Google (if enabled), Create an account (if sign-up is allowed), Forgot password?
Sign up/signupName, Email, Password, plus magic link / Google if enabled, and I already have an account

Both screens are styled with your theme. In Users → Sign-in → Built-in screens each path links to the published app so you can try it (publish first). You can change their texts and logo there, or replace them with your own pages — see Customize sign-in, sign-up and password screens.

How sign-up works

  1. The visitor opens /signup (or clicks Create an account on /login) and enters a name, email and password. Sign-up requires Allow sign-up to be on and the Email & password method enabled.
  2. The password must be at least 8 characters and mix letters with numbers or symbols; the screen shows the exact problem otherwise.
  3. If an account with that email already exists, the visitor sees "An account with this email already exists."
  4. The account gets the Role for new sign-ups.
  5. If Require email verification is on, the visitor is told to check their inbox and cannot sign in until they confirm (see Email verification). Otherwise they are signed in immediately and sent to the After sign-in page.

How sign-in works

  1. The visitor enters email and password on /login.
  2. Wrong email or password shows "Email or password is incorrect." (the message never reveals whether the account exists).
  3. A disabled account shows "This account is disabled."; an unverified one (when verification is required) shows "Please confirm your email address first."
  4. On success the visitor returns to the page they originally asked for (when they were redirected to sign-in), or to the After sign-in page.

Using the Login Form component

  1. In Build, drag Login Form (Forms) onto a page.
  2. Set Form to Sign in, Create account, Forgot password, Email me a sign-in link or Reset password (from email link).
  3. Set a Title, choose After sign-in go to (overrides the app-wide setting for this form) and tick Show sign-in / sign-up switch to let people toggle between the two.
  4. Optionally add actions to its onSuccess and onError events (for example Show message).

The Customer Login business component is a card containing this form. To make the page with the form the sign-in page of your app (redirects, the header button and email links), choose it in Settings → General → System pages — see Customize sign-in, sign-up and password screens.

Turning sign-up off and adding people yourself

  1. In Users → Sign-in, switch Allow sign-up off. /signup then refuses new accounts and the Create an account link disappears.
  2. In Users → App users, choose Test or Live, click Add user, enter the email, an optional name and password, and the role. Users you add are marked email-verified.
  3. If you leave the password empty, the person signs in with a magic link or uses Forgot password to set one.

Workspace admins can also change a user's role, disable (which signs them out) or delete them from this tab.

Sign in / Sign out actions

Buttons can use the Sign in action (opens /login) and the Sign out action (ends the session and returns to the home page).

Common mistakes

  • No password method but a password field expected. With only magic link or Google enabled, /login shows no password field; that is correct.
  • Testing in the builder preview. Sign-in there is simulated; use Preview as or the staging app.
  • Forgetting the environment. Test users exist only on staging; add live users (or let them sign up) on the production app.

Advanced

Endpoints: POST /api/runtime/:projectId/auth/signup|login|logout?channel=live|staging. Sign-up is limited to 5 attempts per 10 minutes per IP; login to 10 per 5 minutes per IP and 10 per 15 minutes per email. The draft channel rejects these calls with "Sign-in is simulated in the builder preview."

Related

Was this helpful?