User Authentification on consoles

Have you seen how the YouTube app does authentication?

You click “go” on the YouTube app on the console, if shows a code, you put the code into the YouTube website. And boom it links.

Some details: https://www.cnet.com/how-to/pair-your-youtube-app-with-an-xbox-360/