Skip to main content
Version: 2.x

Generate Room Token

Generates a signed JWT Room Token. This token authorizes a user to join a specific room.

Inputs​

NameTypeDescription
TargetOdin Token GeneratorThe Odin Token Generator to call this function on.
Room IdStringThe room identifier.
User IdStringThe user identifier.

Outputs​

NameTypeDescription
Json AuthOdin Json ObjectA reference to a UOdinJsonObject pointer that will be populated with a JSON structure containing details about the generated token and its associated room ID.
TokenStringA reference to a string that will hold the generated authentication token if successful.