Skip to content

validateAndNormalizeUniqueId

validateAndNormalizeUniqueId(uniqueId): string

Defined in: src/lib/ws/lib/proto-utils.ts:128

Validates and normalizes the uniqueId (username) input for TikTok live room information retrieval. It ensures that the input is a string and extracts the username from various possible formats, such as full URLs or with/without ’@’ symbol. If the input is invalid, it throws an error with a descriptive message.

unknown

Input value representing the unique identifier (username) of a TikTok user. This can be in various formats, such as a plain username, a full TikTok URL, or with an ’@’ symbol.

string