Our new developer documentation is now available. Please check it out!
Generate Room Token
Takes an access key and a room id and creates a room token that is used to join a room. In production this should be done in a protected environment, e.g. your authentication server (see example project `Token Server´)
Inputs
Name | Type | Description |
---|---|---|
Exec | exec | |
Target | Token Generator | Use the Construct Token Generator node to generate a token generator. |
Room Id | string | The room id to generate a token for. Every user connected to the same room can talk to each other and exchange data. |
User Id | string | The user id to generate a token for. You can use any string that makes sense for you to connect Odin peers to your users. |
Token Audience | enum | The enum value of the token audience. Possible values are Default (for using a gateway) or Single Server (for using a specific Odin server without a gateway). |
Outputs
Name | Type | Description |
---|---|---|
Exec | exec | |
Return Value | string | Returns a room token that can be used to join a room. |