Developer Documentation

OdinClient.generateAccessToken

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

Generates a token for the given access key, room and user ID. This token can be used to join the room. To be more consistent with other SDKs, this method is deprecated. Use generateToken instead.

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