AuthSettingsManager
Authentication Settings Manager
Manages global authentication settings including password requirements, session timeouts, and signup configuration.
Example
Section titled “Example”const authSettings = client.admin.authSettings
// Get current settingsconst settings = await authSettings.get()
// Update settingsawait authSettings.update({ password_min_length: 12, password_require_uppercase: true, session_timeout_minutes: 120})Constructors
Section titled “Constructors”new AuthSettingsManager()
Section titled “new AuthSettingsManager()”new AuthSettingsManager(
fetch):AuthSettingsManager
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
fetch | FluxbaseFetch |
Returns
Section titled “Returns”Methods
Section titled “Methods”get():
Promise<AuthSettings>
Get current authentication settings
Retrieves all authentication configuration settings.
Returns
Section titled “Returns”Promise<AuthSettings>
Promise resolving to AuthSettings
Example
Section titled “Example”const settings = await client.admin.authSettings.get()
console.log('Password min length:', settings.password_min_length)console.log('Signup enabled:', settings.enable_signup)console.log('Session timeout:', settings.session_timeout_minutes, 'minutes')update()
Section titled “update()”update(
request):Promise<UpdateAuthSettingsResponse>
Update authentication settings
Updates one or more authentication settings. All fields are optional - only provided fields will be updated.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
request | UpdateAuthSettingsRequest | Settings to update |
Returns
Section titled “Returns”Promise<UpdateAuthSettingsResponse>
Promise resolving to UpdateAuthSettingsResponse
Examples
Section titled “Examples”// Strengthen password requirementsawait client.admin.authSettings.update({ password_min_length: 16, password_require_uppercase: true, password_require_lowercase: true, password_require_number: true, password_require_special: true})// Extend session timeoutawait client.admin.authSettings.update({ session_timeout_minutes: 240, max_sessions_per_user: 10})// Disable email verification during developmentawait client.admin.authSettings.update({ require_email_verification: false})