I'm currently trying to build a new system that would mimic how you could log in on a smart TV with Netflix/AmazonPrime/Disney+ :
My problems are:
Just for reference i'm using .Net but the question is broader that that.
For anyone wondering:
This way of doing is called "Device flow" and it's in the Oauth 2.0 Spec
Great explanation here