tvos-oauth is remote authorization module you can use to authorize tvOS app through a companion website (be entering activation code)
OAuth2 flow is currently tested for Amazon Login and Dropbox.
See tvOS OAuth Server for details on how to setup your server.