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()
or stackApp.useProject()
.
Table of Contents
The unique ID of the project as a string
.
declare const id: string;
The display name of the project as a string
.
declare const displayName: string;
The configuration settings for the project.
Properties
signUpEnabled
booleanIndicates if sign-up is enabled for the project.
credentialEnabled
booleanSpecifies if credential-based authentication is enabled for the project.
magicLinkEnabled
booleanStates whether magic link authentication is enabled for the project.
clientTeamCreationEnabled
booleanDetermines if client-side team creation is permitted within the project.
clientUserDeletionEnabled
booleanIndicates if client-side user deletion is enabled for the project.
declare const config: {
signUpEnabled: boolean;
credentialEnabled: boolean;
magicLinkEnabled: boolean;
clientTeamCreationEnabled: boolean;
clientUserDeletionEnabled: boolean;
};