Node SDK
identify
Associate server-side behavior with a known user.
userId or anonymousId is required. Use identify after login, signup, account changes, and safe trait updates. Do not send passwords, tokens, raw profile fields, or authentication payloads.
Optional fields are context, timestamp, integrations, and messageId. The callback, when supplied as the second argument, runs after dispatch processing.