@mcp-z/oauth
    Preparing search index...

    Function createServiceKey

    • 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.

      Parameters

      Returns string

      Storage key in format: "{service}:{type}"

      // Track active account
      const activeKey = createServiceKey('active', {
      service: 'gmail'
      });
      // Returns: "gmail:active"

      // Store list of linked accounts
      const linkedKey = createServiceKey('linked', {
      service: 'gmail'
      });
      // Returns: "gmail:linked"