Unauthorized 401

I am confused. I keep getting Unauthorized while trying to PUT configuration settings.
I am doing JWT payload that looks like this:
“exp”: 1505774570,
“role”: “external”,
“user_id”: “43665292”
(Parsed through jwt.io)
I am setting my Client-id and Extension id from the overview page of my extension and I still get
{“error”:“Unauthorized”,“status”:401,“message”:“authentication failed”}. Why? What is happening?
My extension id is 277906 (doesn’t look like real id for some reason) and maybe that causes the error. I am on the local test page of my extension.
Request looks like this (I get 401 for any kind of requests):
curl -H ‘Authorization: Bearer ‘token’’
-H ‘Client-Id: ebfbsgj6lg9k2d4czcycledd89vrz9’
-X GET https://api.twitch.tv/extensions/277906/auth/secret
{“error”:“Unauthorized”,“status”:401,“message”:“authentication failed”}.
What should I do? Thank you in advance.

Could I get any help? I couldn’t do anything with that. I have no control over it.

277906 is the wrong ID, use the LONG one. Labelled as “Client ID”

Also make sure when you have your secret to base64 decode it before using it in JWT operations

Thank you.
It actually was the problem with my extension id. It’s kinda of confusing to name random number Extension ID and then ask for another one with the same name. Anyways, everything is ok now. Thank you again.

I am getting the same error, but it’s when I try to verify my email? I don’t understand why it’s doing this, and when it does say that is sent, it never does send, I reload my email at least like 10 times, wait an hour and there is still not conformation email, can someone please help me? Lol. idk, some twitch chats I go in need a verified email, and since I changed my email, it won’t verify it, I need help.

You necroed a thread that is irrelevant to your problem…

Please see help.twitch.tv