# Issue with oauth/token endpoint

**URL:** <https://staging-discuss.dev.twitch.com/t/issue-with-oauth-token-endpoint/10435>\
**Category:** API\
**Created:** [May 22, 2017, 7:30am UTC](https://staging-discuss.dev.twitch.com/t/issue-with-oauth-token-endpoint/10435 "2017-05-22T07:30:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LuckyNoS7evin](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/luckynos7evin/32/5036_2.png) [@LuckyNoS7evin](https://staging-discuss.dev.twitch.com/u/LuckyNoS7evin)\
**Post date:** [May 22, 2017, 7:30am UTC](https://staging-discuss.dev.twitch.com/t/issue-with-oauth-token-endpoint/10435/1 "2017-05-22T07:30:51Z")

</div>

I’ve been using the Authentication system for a few weeks now with no issue.

Last night Sunday 21st May however I started to get Bad Requests from the kraken/oauth/token endpoint. However the error doesn’t make sense as I believe I am supplying a client ID

REQUEST as taken from fiddler

> POST [https://api.twitch.tv/kraken/oauth/token](https://api.twitch.tv/kraken/oauth/token) HTTP/1.1  
> Accept: application/vnd.twitchtv.v5+json  
> Content-Type: application/x-www-form-urlencoded  
> Host: [api.twitch.tv](http://api.twitch.tv)  
> Content-Length: 220  
> Expect: 100-continue

> client\_id=59gf113hl2vbatr87bri9ajubnyqz0&client\_secret={{SECRET}}&grant\_type=authorization\_code&redirect\_uri=http%3A%2F%2Flocalhost%3A4141%2FAccountLinking%2FTwitch&code=v9ap6fraosku5j142mw4fp4sx71iva

RESPONSE as taken from fiddler

> HTTP/1.1 400 Bad Request  
> Date: Mon, 22 May 2017 07:19:25 GMT  
> Content-Type: application/json  
> Content-Length: 71  
> Connection: keep-alive  
> Server: nginx  
> Access-Control-Allow-Origin: \*  
> Cache-Control: no-cache, no-store, must-revalidate, private  
> Expires: 0  
> Pragma: no-cache  
> Twitch-Trace-Id: edc24a22aa15a7a1146d86ef37370972  
> X-Ctxlog-Logid: 1-592290fd-27f101df15b0f68934d2e76e  
> Timing-Allow-Origin: [https://www.twitch.tv](https://www.twitch.tv)

> {“error”:“Bad Request”,“status”:400,“message”:“No client id specified”}

---

<div class="post-metadata">

**Author:** ![LuckyNoS7evin](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/luckynos7evin/32/5036_2.png) [@LuckyNoS7evin](https://staging-discuss.dev.twitch.com/u/LuckyNoS7evin)\
**Post date:** [May 22, 2017, 8:12am UTC](https://staging-discuss.dev.twitch.com/t/issue-with-oauth-token-endpoint/10435/2 "2017-05-22T08:12:13Z")

</div>

Well that took far longer than expected and I finally found the change and didn’t even notice that I had done it.

It will teach me to just copy and paste, but I have been using /oauth/token… not oauth2/token…

Derp!

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [June 21, 2017, 8:12am UTC](https://staging-discuss.dev.twitch.com/t/issue-with-oauth-token-endpoint/10435/3 "2017-06-21T08:12:53Z")

</div>

Closed on June 21, 2017, 8:12am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
