Overview
Theupdate_deployment_restrictions function updates access restrictions for your deployment, controlling who can sign up and access your application.
Function Signature
Parameters
Access restriction configuration including:
allowed_domains: List of allowed email domains for signupblocked_domains: List of blocked email domainsallowed_countries: List of allowed countries (ISO codes)blocked_countries: List of blocked countries (ISO codes)require_email_verification: Require email verification before accessrequire_phone_verification: Require phone verification before access
Return Value
ReturnsResult<()> indicating success or failure.
Basic Usage
Advanced Usage
Error Handling
Important Notes
- Domain restrictions apply only to new signups
- Country restrictions are based on IP geolocation
- Existing users are not affected by new restrictions
- Both allowed and blocked lists cannot be used simultaneously
Rate Limits
- Update operations: 50 requests per minute
- Burst limit: 5 requests per second
Related Functions
- fetch_deployment_settings - Get current settings
- update_authentication_settings - Update auth settings
- update_b2b_settings - Update B2B configuration
