Skip to content
MyAppBuilder
StableAction

Sign in

Overview

Opens the app's sign-in screen.

Purpose

Put it on a “Sign in” button in the header or on public pages that lead to member-only areas. Pages that require sign-in redirect there automatically.

Inputs

  • No settings.

Configuration

  • Enable authentication under Authentication first and choose the providers (password, magic link, Google).
  • In the builder preview, sign-in is simulated — use “Preview as” to switch roles.

Outputs

  • None. After signing in, the user is taken to the page configured under Authentication (After login page) or home.

Example

Header sign-in button

Example
Button “Sign in” (visible when Current user › isAuthenticated is false) › On click:
  1. Sign in

Errors

  • None.

Limitations

  • The target page stored in the project definition is not used by the runtime yet; the authentication settings decide where people land.

Advanced

  • Schema: { type: "login", pageId? }. Calls rt.openAuth("login").

Related

Was this helpful?