pub struct AccountConfig {
pub additional_fields: FieldConfigs,
pub update_account_on_sign_in: bool,
pub account_linking: AccountLinkingConfig,
pub encrypt_oauth_tokens: bool,
pub store_account_cookie: bool,
pub cookie_max_age: Option<f64>,
pub store_state_strategy: OAuthStateStrategy,
pub skip_state_cookie_check: bool,
}Expand description
Account-level configuration: linking, token encryption, sign-in behavior.
Fields§
§additional_fields: FieldConfigs§update_account_on_sign_in: boolUpdate OAuth tokens on every sign-in (default: true)
account_linking: AccountLinkingConfigAccount linking settings
encrypt_oauth_tokens: boolEncrypt OAuth tokens at rest (default: false)
Store account data in an account cookie for OAuth-backed access token flows.
Override the account cookie lifetime in seconds, including fractional
and nonfinite values. Equivalent to the published account_data cookie’s
maxAge attribute; takes precedence over the integer advanced override.
None inherits the session cache lifetime (or 300 seconds).
store_state_strategy: OAuthStateStrategyWhere to persist OAuth state during the authorization flow. Automatic selects database state with a server store, cookie state without one.
Skip state-cookie verification during callback processing.
This is security-sensitive and should stay disabled in normal use.