1.1.7 • Published 1 year ago
rtc-token v1.1.7
Authenticate Users with a token
Generate a token with the example code
This section takes Example.js
as an example to show how to generate a token with the sample code.
Before proceeding, ensure that you have installed a Java IDE.
- Install the Rtc-token repository.
- Open the
example.js
file, replace the value ofappID
,appCertificate
,channelName
, anduid
with your own, and comment out the code snippets ofbuildTokenWithUid
. - Run the example project. Your token is generated and printed in your IDE.