agora_token_service
0.1.2, released 4 years ago by an unverified publisher
Unofficial Dart library to generate Agora.io WebRTC access tokens.
WASM-ready
What it does
Generates Agora WebRTC tokens using app credentials, channel, uid, role and expiration. Implements the token algorithm based on Agora's Node.js reference implementation. Pure Dart with no native dependencies.
AI-written summary of version 0.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to create Agora access tokens on a Dart server or backend
- You want a lightweight, platform‑agnostic way to generate tokens without native code
Skip it when
- You require official, officially supported token generation
- You need token validation or other Agora SDK features
Strengths
- Pure Dart, works on all Flutter platforms
- No external crc32 dependency, lightweight
- Simple API matching Agora's reference
Weaknesses
- Unofficial implementation may lag behind official spec
- Only generates tokens, no validation or other Agora features
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
final token = RtcTokenBuilder.build(
appId: appId,
appCertificate: appCertificate,
channelName: channelName,
uid: uid,
role: role,
expireTimestamp: expireTimestamp,
);Works with
Packages commonly used together with agora_token_service: ones it builds on, ones built on it, and its own family.