mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
- Updated local emulator scripts to standardize command names and improve clarity, changing references from `generate-local-emulator-env` to `emulator:generate-env` and similar adjustments for other commands. - Introduced a new configuration file (`stack.config.ts`) to centralize authentication and team settings, enhancing the management of user permissions and onboarding processes. - Removed the outdated `.env.development` file to streamline environment handling, ensuring that the local emulator relies on generated configurations. - Adjusted documentation and example usage to reflect the new command structure and configuration file, improving developer experience. These changes enhance the usability and maintainability of the local emulator setup, providing a clearer structure for configuration and command usage.
65 lines
1.3 KiB
TypeScript
65 lines
1.3 KiB
TypeScript
export const config = {
|
|
"auth": {
|
|
"allowSignUp": true,
|
|
"password": {
|
|
"allowSignIn": true
|
|
},
|
|
"otp": {
|
|
"allowSignIn": false
|
|
},
|
|
"passkey": {
|
|
"allowSignIn": false
|
|
},
|
|
"oauth": {
|
|
"accountMergeStrategy": "link_method",
|
|
"providers": {
|
|
"google": {
|
|
"type": "google",
|
|
"allowSignIn": true,
|
|
"allowConnectedAccounts": true
|
|
},
|
|
"github": {
|
|
"type": "github",
|
|
"allowSignIn": true,
|
|
"allowConnectedAccounts": true
|
|
}
|
|
}
|
|
},
|
|
"signUpRulesDefaultAction": "allow"
|
|
},
|
|
"teams": {
|
|
"createPersonalTeamOnSignUp": false,
|
|
"allowClientTeamCreation": false
|
|
},
|
|
"users": {
|
|
"allowClientUserDeletion": false
|
|
},
|
|
"onboarding": {
|
|
"requireEmailVerification": false
|
|
},
|
|
"apiKeys": {
|
|
"enabled": {
|
|
"team": false,
|
|
"user": false
|
|
}
|
|
},
|
|
"domains": {
|
|
"allowLocalhost": true,
|
|
"trustedDomains": {}
|
|
},
|
|
"rbac": {
|
|
"permissions": {},
|
|
"defaultPermissions": {
|
|
"teamCreator": {},
|
|
"teamMember": {},
|
|
"signUp": {}
|
|
}
|
|
},
|
|
"apps": {
|
|
"installed": {}
|
|
},
|
|
"apps.installed.authentication.enabled": true,
|
|
"apps.installed.analytics.enabled": true,
|
|
"apps.installed.api-keys.enabled": true
|
|
};
|