TV Apps Login

Code here… auto generated before or now as unique in custom table, and assigned to logged in user… so that api call from device to ask who is associated with code will pull up the user id and perhaps their auto login code to store locally for future api needs…?