Skip to content

gi-nx


gi-nx / setUserData

ts
function setUserData(data: Record<string, unknown>): Promise<void>;

Sets the current user's meta data for a specific app. Rate limited to 1 request per 10 seconds.

Parameters

ParameterTypeDescription
dataRecord<string, unknown>The meta data to set. Must be less than 2KB when serialized.

Returns

Promise<void>

Throws

If rate limited, if app data exceeds 2KB, or if total data exceeds 4KB.