-
Notifications
You must be signed in to change notification settings - Fork 19
Trouble Shooting
caitengwen edited this page Oct 27, 2020
·
2 revisions
其他语言版本:简体中文
- In this sample project, we use Basic HTTP Authentication, which will generate the
Authorization
parameter. If you need a more secure way, you can use Token Authentication and pass in auid
to dynamically generate a token. For more information about how to generate an RTM Token, see Token Security. - If you are worried about the security of the whiteboard sdkToken, you can deploy your own Token generation service.
You should store the
sdkToken
on your server, and see the following documents to deploy a service for generating the token of a whiteboard room.
References
- JS: Room Authentication
- Android: Create Room
- iOS:Create Room
Example
Request GET {{tokenServiceUrl}}?channelName={channelName}
Request parameter | Type | Description |
---|---|---|
channelName |
String | The channel name |
Response
Content-Type: application/json;charset=UTF-8
{
"msg": "Success",
"code": 0,
"data": {
"boardId": "",
"boardToken": ""
}
}
If you do not use yarn or cnpm to install, remove node_modules
, yarn.lock
, package-lock.json
.