Giter Site home page Giter Site logo

110 token is invalid about tools HOT 7 CLOSED

agoraio avatar agoraio commented on August 15, 2024
110 token is invalid

from tools.

Comments (7)

yoreland avatar yoreland commented on August 15, 2024

Can you give an example of your token?

from tools.

aakash-patel-dev avatar aakash-patel-dev commented on August 15, 2024

Thanks its working fine now

from tools.

Nithinjith avatar Nithinjith commented on August 15, 2024

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.

aakash-patel-dev avatar aakash-patel-dev commented on August 15, 2024

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.

aakash-patel-dev avatar aakash-patel-dev commented on August 15, 2024

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.

Nithinjith avatar Nithinjith commented on August 15, 2024

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.

aakash-patel-dev avatar aakash-patel-dev commented on August 15, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.