Project

The Project object contains the information and configuration of a project, such as the name, description, and enabled authentication methods.

Each Stack app corresponds to a project. You can obtain its Project object by calling stackApp.getProject().

Table of Contents

1type Project = {
2 id: string; //$stack-link-to:#projectid
3 displayName: string; //$stack-link-to:#projectdisplayname
4 config: { ... }; //$stack-link-to:#projectconfig
5};

project.id

The unique ID of the project as a string.

Type Definition

1declare const id: string;

project.displayName

The display name of the project as a string.

Type Definition

1declare const displayName: string;

project.config

The configuration settings for the project.

Type Definition

1declare const config: {
2 signUpEnabled: boolean;
3 credentialEnabled: boolean;
4 magicLinkEnabled: boolean;
5 clientTeamCreationEnabled: boolean;
6 clientUserDeletionEnabled: boolean;
7};