Call a Protected API from a .NET MAUI App

i found this video to be a best way to setup login

the author has a large number of very good videos on xamarin and maui app building.