Create service-scoped storage key.
These keys are scoped to a service (not a specific account) and store service-level data like which account is active or the list of linked accounts.
Key type ('active' for active account, 'linked' for account list)
Service key parameters
Storage key in format: "{service}:{type}"
// Track active accountconst activeKey = createServiceKey('active', { service: 'gmail'});// Returns: "gmail:active"// Store list of linked accountsconst linkedKey = createServiceKey('linked', { service: 'gmail'});// Returns: "gmail:linked" Copy
// Track active accountconst activeKey = createServiceKey('active', { service: 'gmail'});// Returns: "gmail:active"// Store list of linked accountsconst linkedKey = createServiceKey('linked', { service: 'gmail'});// Returns: "gmail:linked"
Create service-scoped storage key.
These keys are scoped to a service (not a specific account) and store service-level data like which account is active or the list of linked accounts.