Developer Documentation
Our new developer documentation is now available. Please check it out!

OdinClient.generateToken

public generateToken(accessKey: string, roomId: string, userId: string): string

Generates a room token for the given access key, room and user ID. This token can be used to join the room.

Parameters

NameTypeDescription
accessKeystringThe access key to use to generate the token. You can get a free access token in our developer center
roomIdstringThe ID of the room to generate the token for.
userIdstringThe ID of the user to generate the token for.

Returns

TypeDescription
string