Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

110 token is invalid #155

Closed
aakash-patel-dev opened this issue May 26, 2021 · 7 comments
Closed

110 token is invalid #155

aakash-patel-dev opened this issue May 26, 2021 · 7 comments

Comments

@aakash-patel-dev
Copy link

I'm getting "110 token is invalid" but when I created from agora console (agora temp token is working) and when I created from source code example of PHP.

-appid
-app certificate
-channelName
-uid
===>I'm using 'Token with int uid: '

how to implement join channel from android side

@yoreland
Copy link
Contributor

Can you give an example of your token?

@aakash-patel-dev
Copy link
Author

Thanks its working fine now

@Nithinjith
Copy link

Nithinjith commented Aug 2, 2021

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, "nithinjith@mydns.ai", 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

@aakash-patel-dev
Copy link
Author

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.

@aakash-patel-dev
Copy link
Author

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/

@Nithinjith
Copy link

Nithinjith commented Aug 3, 2021

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?

@aakash-patel-dev
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants