Our new developer documentation is now available. Please check it out!
OdinClient.generateAccessToken
On this page
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
Name | Type | Description |
---|---|---|
accessKey | string | The access key to use to generate the token. You can get a free access token in our developer center |
roomId | string | The ID of the room to generate the token for. |
userId | string | The ID of the user to generate the token for. |
Returns
Type | Description |
---|---|
string |