Skip to content

Unofficial Dart library for generating Agora WebRTC tokens

License

Notifications You must be signed in to change notification settings

rasitayaz/agora-token-service-dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agora Token Service for Dart

pub github buy me a coffee

This is an unofficial Dart library for generating Agora.io WebRTC tokens. It is based on Agora's Node.js token service implementation in this repository.

You can use it in your Dart server to create Agora WebRTC access tokens.

Usage

See example for basic usage.

final token = RtcTokenBuilder.build(
  appId: appId,
  appCertificate: appCertificate,
  channelName: channelName,
  uid: uid,
  role: role,
  expireTimestamp: expireTimestamp,
);

Contribution

This library is currently only used for access token generation, you can contribute here by implementing other features included in Agora's official implementation.

Thanks

Thanks to Rakesh Kumar Verma for CRC32 implementation.

About

Unofficial Dart library for generating Agora WebRTC tokens

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages