Skip to content

A simple token server for Agora applications using NodeJS with Express, and Agora Access Token modules.

License

Notifications You must be signed in to change notification settings

digitallysavvy/Agora-Node-TokenServer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agora Node Token Server

This is an example of a simple Node/Express server that generates a token for Agora applications.

Run the server

Install the dependencies

npm install

Start the service

npm start

Generate the Token

The endpoint generates a token uisng: channelName (String) , the uid (Int), and a role ('subscriber' or 'publisher'). (optional) Pass expirationTime (integer) to represent the token lifetime in seconds.

endpoint structure

?channelName=&uid=&role=&expireTime=

response:

{"token":" "} 

About

A simple token server for Agora applications using NodeJS with Express, and Agora Access Token modules.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%