# Non Browser based Authentication

**URL:** <https://discuss.dev.twitch.com/t/non-browser-based-authentication/7328>\
**Category:** Game Development\
**Created:** [September 7, 2016, 4:08am UTC](https://discuss.dev.twitch.com/t/non-browser-based-authentication/7328 "2016-09-07T04:08:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AugustYadon](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@AugustYadon](https://discuss.dev.twitch.com/u/AugustYadon)\
**Post date:** [September 7, 2016, 4:08am UTC](https://discuss.dev.twitch.com/t/non-browser-based-authentication/7328/1 "2016-09-07T04:08:53Z")

</div>

I’m having a hard time finding documentation on authentication strategies that don’t require a browser being opened with a redirect uri. That strategy works fine when I’m working with a server and javascript, but when I attempt to get a chat stream in Unity3D with C# I’m not sure where to start. Is there any support for this or any intended support in the near future?

I’m primarily a 3D game developer and I was hoping to allow people in chat to send commands directly to a game controller type class.

---

<div class="post-metadata">

**Author:** ![3ventic](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://discuss.dev.twitch.com/u/3ventic)\
**Post date:** [September 7, 2016, 11:13am UTC](https://discuss.dev.twitch.com/t/non-browser-based-authentication/7328/2 "2016-09-07T11:13:39Z")

</div>

A browser is required for the user to login and authorize the connection. This cannot be avoided, but it doesn’t have to be done in-game. A separate small program could handle it and save it in the game’s settings.

---

<div class="post-metadata">

**Author:** ![tduva](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/tduva/32/392_2.png) [@tduva](https://discuss.dev.twitch.com/u/tduva)\
**Post date:** [September 7, 2016, 11:20am UTC](https://discuss.dev.twitch.com/t/non-browser-based-authentication/7328/3 "2016-09-07T11:20:28Z")

</div>

I’m not sure what exactly you want to do, but if you only need to _receive_ chat messages, then you can just login with the name `justinfan[somenumber]` without a password.

---

<div class="post-metadata">

**Author:** ![AugustYadon](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@AugustYadon](https://discuss.dev.twitch.com/u/AugustYadon)\
**Post date:** [September 14, 2016, 12:09am UTC](https://discuss.dev.twitch.com/t/non-browser-based-authentication/7328/4 "2016-09-14T00:09:50Z")

</div>

Alright, good to know. I think I was having a hard time finding the tmi.js documentation and github. I was looking through a lot of the other developer sections, and now that I found that, I’ve setup a small node program to handle all the API calls and pass info back to my game once I’m setup with a token. I wanted to post a link in case anyone else comes across this in the future in a similar situation.

> **[tmijs/tmi.js](https://github.com/tmijs/tmi.js)**
>
> tmi.js - :speech\_balloon: Javascript library for the Twitch Messaging Interface. (Twitch.tv)

  
This is what you want for integrating with a node program.

---

<div class="post-metadata">

**Author:** ![AugustYadon](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@AugustYadon](https://discuss.dev.twitch.com/u/AugustYadon)\
**Post date:** [September 14, 2016, 12:10am UTC](https://discuss.dev.twitch.com/t/non-browser-based-authentication/7328/5 "2016-09-14T00:10:31Z")

</div>

Thanks for the tip

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [October 7, 2016, 4:08am UTC](https://discuss.dev.twitch.com/t/non-browser-based-authentication/7328/6 "2016-10-07T04:08:55Z")

</div>

Closed on October 7, 2016, 4:08am UTC

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