
Import Example
Context Hooks
Provides branding configurations, such as logo, colors, and theme settings displayed on the login screen.
Example
Provides client-related configurations, such as
id, name, and logoUrl, for the login screen.Example
Provides information about the user’s organization if the login is organization-scoped. Returns
null when no organization context is present.Example
Contains data about the current prompt in the authentication flow.
Example
Contains details specific to the
login screen, including its configuration and context.Example
Contains data related to the tenant, such as
id and associated metadata.Example
Provides transaction-specific data for the
login screen, such as active connections, available login methods, and current flow state.Example
Handles untrusted data passed to the screen, such as a prefilled username from URL parameters.
Example
Details of the active user, including
username, email, and available authentication methods.Example
Methods
Initiates authentication via a federated identity provider such as Google or GitHub.
Example
Submits the user’s credentials to complete authentication on the login screen.
Example
Opens the country code picker for phone-based login flows.