@@ -859,7 +859,7 @@ export class AuthManager {
859859 ...( ( ) => {
860860 const origins : string [ ] = [ ...( this . config . trustedOrigins || [ ] ) ] ;
861861 // Sync with OS_CORS_ORIGIN env var (comma-separated)
862- const corsOrigin = readEnvWithDeprecation ( 'OS_CORS_ORIGIN' , 'CORS_ORIGIN' ) ;
862+ const corsOrigin = readEnvWithDeprecation ( 'OS_CORS_ORIGIN' , 'CORS_ORIGIN' , { silent : true } ) ;
863863 if ( corsOrigin && corsOrigin !== '*' ) {
864864 corsOrigin . split ( ',' ) . map ( s => s . trim ( ) ) . filter ( Boolean ) . forEach ( o => {
865865 if ( ! origins . includes ( o ) ) origins . push ( o ) ;
@@ -1137,9 +1137,8 @@ export class AuthManager {
11371137 // The plugin itself is always installed (so list/update/invite endpoints
11381138 // keep responding); only the `create` operation is denied when the
11391139 // deployment is provisioned in single-org mode. Resolution order:
1140- // 1. explicit `OS_MULTI_ORG_ENABLED` (wins for backwards compat),
1141- // 2. else `OS_MULTI_TENANT` (multi-tenant deployments are always
1142- // multi-org), default `'false'` → single-org / per-env runtime.
1140+ // `OS_MULTI_ORG_ENABLED` (default `'false'` → single-org /
1141+ // per-env runtime).
11431142 beforeCreateOrganization : async ( ) => {
11441143 if ( ! resolveMultiOrgEnabled ( ) ) {
11451144 const { APIError } = await import ( 'better-auth/api' ) ;
@@ -1565,7 +1564,7 @@ export class AuthManager {
15651564 * Generate a secure secret if not provided
15661565 */
15671566 private generateSecret ( ) : string {
1568- const envSecret = readEnvWithDeprecation ( 'OS_AUTH_SECRET' , [ 'AUTH_SECRET' , 'BETTER_AUTH_SECRET' ] ) ;
1567+ const envSecret = readEnvWithDeprecation ( 'OS_AUTH_SECRET' , [ 'AUTH_SECRET' , 'BETTER_AUTH_SECRET' ] , { silent : true } ) ;
15691568 if ( envSecret ) return envSecret ;
15701569
15711570 // No secret configured. In production this is FATAL: a predictable
@@ -1863,9 +1862,7 @@ export class AuthManager {
18631862 // Extract enabled features
18641863 const pluginConfig : Partial < AuthPluginConfig > = this . config . plugins ?? { } ;
18651864 // Multi-org capability (UI org-switcher, "create org" action, etc.).
1866- // Resolution order: explicit `OS_MULTI_ORG_ENABLED` wins, else fall
1867- // back to legacy `OS_MULTI_TENANT` (multi-tenant deployments are always
1868- // multi-org); default `'false'` → single-org / per-env runtime.
1865+ // `OS_MULTI_ORG_ENABLED` (default `'false'` → single-org / per-env runtime).
18691866 const multiOrgEnabled = resolveMultiOrgEnabled ( ) ;
18701867
18711868 // Legal links shown beneath the login / register cards. Defaults to
0 commit comments