title: The access token is from the wrong issuer 'https://sts.windows.net'
body: <p>I am using  'azure-arm-resource' for get all resources in azure for my node js project.</p>
  
  <p><a href="https://www.npmjs.com/package/azure-arm-resource" rel="nofollow noreferrer">https://www.npmjs.com/package/azure-arm-resource</a></p>
  
  <p>But using this I get some error,</p>
  
  <pre><code> msRestAzure.interactiveLogin().then(credentials =&gt; {
    const azureResources = new resourceManagement.ResourceManagementClient(credentials, subscriptionId);
  
    azureResources.resources
      .list()
      .then(res =&gt; {
        if (filter) {
          return res.filter(r =&gt; r.kind === filter);
        } else {
          return res;
        }
      })
      .then(d =&gt; {
        console.log('Done Resources');
      });
  });
  console.log('Pulling...');
   }
  </code></pre>
  
  <p>Error,</p>
  
  <pre><code> Uncaught (in promise) Error: The access token is from the wrong issuer 
  'https://sts.windows.net/xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx/'.
   It must match the tenant 'https://sts.windows.net/xxxx-xxx-xxxx-xxxx- 
   c3xxx4xxffd57xx7/' 
   associated with this subscription. Please use the authority (URL) 
   'https://login.windows.net/xxxx-xxxx-xxx-xxxx-xxxxxxxx' to get the token. 
    Note, if the subscription is transferred to another tenant there is no 
   impact to the services, but information about new tenant could take time to 
    propagate (up to an hour). If you just transferred your subscription and  
    this error message, please try back later.
  </code></pre>
  
  <p>Device Token Credentials undefined in azure interactive login</p>