Best way to handle OAuth to other services

Except if you use HTML 5 Web Messaging, in which case it works great.

Here’s a gist of my code (works in 3 live extensions): Twitch OAuth in a popup · GitHub

And here’s some notes on postmessage for reference: Window: postMessage() method - Web APIs | MDN

That’s a long sentence.

Hope that helps.