YouTube on TV verifies your account using an activation code. Open the YouTube app on your smart TV, go to Settings > Sign In, and an 8-digit code appears. Visit youtube.com/activate on your phone or computer, sign in, enter the code, and your TV will be linked automatically.