diff --git a/internal/start/start.go b/internal/start/start.go index b4b192d18..e3190542c 100644 --- a/internal/start/start.go +++ b/internal/start/start.go @@ -423,6 +423,7 @@ EOF fmt.Sprintf("GOTRUE_SECURITY_REFRESH_TOKEN_ROTATION_ENABLED=%v", utils.Config.Auth.EnableRefreshTokenRotation), fmt.Sprintf("GOTRUE_SECURITY_REFRESH_TOKEN_REUSE_INTERVAL=%v", utils.Config.Auth.RefreshTokenReuseInterval), + fmt.Sprintf("GOTRUE_SECURITY_MANUAL_LINKING_ENABLED=%v", utils.Config.Auth.EnableManualLinking), } for id, tmpl := range utils.Config.Auth.Email.Template { diff --git a/internal/utils/config.go b/internal/utils/config.go index 71ca3fdea..6703c86f9 100644 --- a/internal/utils/config.go +++ b/internal/utils/config.go @@ -309,6 +309,7 @@ type ( JwtExpiry uint `toml:"jwt_expiry"` EnableRefreshTokenRotation bool `toml:"enable_refresh_token_rotation"` RefreshTokenReuseInterval uint `toml:"refresh_token_reuse_interval"` + EnableManualLinking bool `toml:"enable_manual_linking"` EnableSignup bool `toml:"enable_signup"` Email email `toml:"email"` diff --git a/internal/utils/templates/init_config.test.toml b/internal/utils/templates/init_config.test.toml index e62b55ab9..f6fefffcc 100644 --- a/internal/utils/templates/init_config.test.toml +++ b/internal/utils/templates/init_config.test.toml @@ -81,6 +81,8 @@ enable_refresh_token_rotation = true refresh_token_reuse_interval = 10 # Allow/disallow new user signups to your project. enable_signup = true +# Allow/disallow testing manual linking of accounts +enable_manual_linking = true [auth.email] # Allow/disallow new user signups via email to your project. diff --git a/internal/utils/templates/init_config.toml b/internal/utils/templates/init_config.toml index 06a5dc755..b89a9fc52 100644 --- a/internal/utils/templates/init_config.toml +++ b/internal/utils/templates/init_config.toml @@ -81,6 +81,8 @@ enable_refresh_token_rotation = true refresh_token_reuse_interval = 10 # Allow/disallow new user signups to your project. enable_signup = true +# Allow/disallow testing manual linking of accounts +enable_manual_linking = false [auth.email] # Allow/disallow new user signups via email to your project.