Comments (7)
Can you give an example of your token?
from tools.
Thanks its working fine now
from tools.
I am getting a 110 Invalid token error in My android app while generating tokens.
private fun generateRTCToken(): String{
val token = RtcTokenBuilder()
val timestamp = (System.currentTimeMillis() / 1000 + 18000).toInt()
val result = token.buildTokenWithUserAccount(
getString(R.string.agora_app_id), getString(R.string.agora_certificate),
channelName, "[email protected]", RtcTokenBuilder.Role.Role_Publisher, timestamp
)
Log.e(MainActivity.TAG, "Agora Token Generated $result")
return result
}
App Id: de9e6e9c2e87409e849ebd109a0e9eb0
Generated Token : 006de9e6e9c2e87409e849ebd109a0e9eb0IACFUIehc2XIGs2h9rT5HSeV5F3IFr0iXt+JkoL9ZdZej3b05vt6SoaNIgCpqK3HmrQIYQQAAQBqqQdhAgBqqQdhAwBqqQdhBABqqQdh
error message: onError code 110 message The Token is invalid
from tools.
Hello, @Nithinjith the token is working fine but the problem is when you are creating join channel you need to generate token for different user id and they can join within same channel name but your generated tokens are different.
from tools.
You can check from this following link and also you need to pass your generated tokens with their user id https://webdemo.agora.io/agora-web-showcase/examples/Agora-Web-Tutorial-1to1-Web/
from tools.
As far as I know, I am getting a NO_AUTHORIZED error from the given portal console. Is there any API available to authenticate my domain users?
from tools.
@Nithinjith i think you need to generate this tokens from your server and agora can't provide any API for authentication. This tokens are working fine for me
from tools.
Related Issues (20)
- Is it mandatory to login RTC while fetching Video/Audio in Android App? HOT 1
- Need help for token generation for user registration through rest api HOT 1
- RTC token not valid HOT 3
- issue with RTC token on the web HOT 10
- Which package should I use? when it cames to agora-access-token and agora-token. HOT 3
- [ruby] warning message of dynamic_key5.rb in Ruby 3.2 HOT 3
- feat: Support for ESM HOT 2
- agora-token: Buffer is not defined HOT 1
- java sdk maven**仓库没有更新 HOT 2
- Why c# code is using _uid as _channelName RTM Token generation c# HOT 2
- crypto.createHmac is not a function TypeError: crypto.createHmac is not a function HOT 1
- index.htmlpackage-ecosystem
- 能不能把不同语言的sdk分开,以便使用安装 HOT 3
- Problem in Building AccessToken2 || which library I have to use HOT 1
- Add API for synchronous token validation HOT 1
- python3和python2 下生成的Education Token是否可用? HOT 2
- AgoraRTCError CAN_NOT_GET_GATEWAY_SERVER with PHP 8.2 HOT 1
- go RtcTokenBuilder vs rtctokenbuilder2 HOT 1
- getStats() method is no longer supported HOT 2
- Error: error:0308010C:digital envelope routines::unsupported HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tools.