Question / Help Failed to get token from remote (With work-around)

This is what I'm greeted with whenever I start OBS. After quitting OBS and restarting it it SOMETIMES works and I'll be able to stream. I don't want to remove my account and re-link it every time as it messes up my layout. It seems the 5 second timeout window is too short and not configurable. (why?) All it says in the log files is:

16:34:47.900: OAuth::GetToken: Failed to get token from remote:

right before loading the Discordapp streamkit browser overlay (which also throws an error if you are already connected to a voice channel, even if it's the same one). Even though looking at the times it hasn't even taken 5 seconds at all. For some reason this browsersource for Discord's overlay seems to interfere somehow, as I've found it more reliable to work when you disable any browser sources that use the Discord Streamkit overlay (In settings, use "Shut down source when not visible" and make it invisible by clicking the eye icon in the Sources panel) whenever you shutdown OBS, then turn it back on when OBS is already running.

Just thought to post this here in case anyone else is having issues.
 
Top