A demo of a better authentication flow for tvOS apps using iOS
A demo of a better authentication flow for tvOS apps using iOS
For more background, read the blog post
In your terminal:
cd iOS/TriplePlay
pod install
open TriplePlay.xcworkspace
The build and run the app from Xcode.
In your terminal:
cd tvOS/Timehop
pod install
open Timehop.xcworkspace
The build and run the app from Xcode.
In practice, you wouldn’t actually want to pass the authentication token. In this example, anyone listening for the _timehop_auth._tcp.
would be able to grab the (potentially sensitive) data you’re passing to the tvOS app.
Some alternate flows could be:
_timehop_auth_RaNd0mt0ken._tcp.
MIT. See LICENSE