You really want to log out? We were having so much fun!
Microsoft libraries for acquiring and using tokens with supported identity flows.