Visual Studio Team Services Device Flow Authentication for Node.js
vsts-device-flow-auth is a small library that helps your Node.js application's users interactively authenticate to Visual Studio Team Services. It
supports both Azure Active Directory-backed (AAD) and Microsoft Account-backed (MSA) Team Services accounts. When the authentication is complete,
the Node.js application receives a personal access token to use on the Team Services user's behalf.
Install
$ npm install --save vsts-device-flow-auth
Usage
Create a DeviceFlowAuthenticator with the URI of the user's Team Services account. You will also need to provide your application's client id and redirect Uri. For
information on how to register an application with Azure, see How to register an app with the v2.0 endpoint
for details.