Overview
App module for reading an app’s public settings. Use it to read the app’s visibility and determine whether the current visitor can access the app. If the app requires login, useredirectToLogin() from the auth module to send the visitor to the login page.
Learn more about app visibility.
Authentication modes
You can use this module with a client in any authentication mode. The client sends its token, if it has one, with the request.Methods
getPublicSettings()
getPublicSettings():Retrieves the app’s public settings. Rejects with aPromise<AppPublicSettingsResponse>
Base44Error that has a status of 403 when the visitor can’t access the app.
Check data.extra_data.reason to find the cause:
auth_required: The visitor must sign in.user_not_registered: The visitor is signed in but doesn’t have access.
Returns
AppPublicSettingsResponse
The app’s public settings.
Properties
Properties
string
requis
The app’s ID.
AppPublicSettings
requis
The app’s visibility.
For supported values, see
AppPublicSettings.Example
Type Definitions
AppPublicSettings
AppPublicSettings =The app’s visibility. You can set and manage the app’s visibility in the app’s dashboard or with the Base44 CLI"private_with_login"|"public_with_login"|"public_without_login"|"workspace_with_login"|string
visibility command.
The following table shows the supported values and the visibility each one represents:
If your workspace enforces SSO for apps, apps set to
public_without_login also require sign-in.