0

I am using twilio runtime function to generate access token successfully on browser. Below is the attached screenshot.

enter image description here

But when I run that url on iOS quickstart project, it gives me invalid access token error when I am connecting room. Kindly help. Below is the url I use in my project.

var tokenUrl = "https://ochre-piranha-2040.twil.io/video-token"

enter image description here

1 Answer 1

1

It seems like the identity is missing from your video token, you should have:

{
  "jti": "SKad6ba74ba95c959a69cec1f735c992c9-1581234567",
  "grants": {
    "identity": "JohnDoe",
    "video": {}
  },
  "iat": 1589364684,
  "exp": 1589368284,
  "iss": "SKad6ba74ba95c959a69cec1f731234567",
  "sub": "AC27740274e921b6c90991edde01234567"
}

User Identity & Access Tokens

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.