It really depends on the architecture of your application. If you own the service being logged in to, then you can choose either way. The registration code is arguably easier to manage, since it gets typed into a web browser on a phone or computer which has a full keyboard. Alternatively, typing in emails and passwords on the Roku UI is time consuming but will work.
In some cases, the authentication architecture will drive your choice. For instance, the Picta channels we created talk to Dropbox and OneDrive, both of which don't allow you to collect and send a user's login name and password.