title: Microsoft Graph API - Problem to access oneDrive in route '/me/drives'
body: <p>I'm trying to use Microsoft Graph API to acess oneDrive folders and archives in node.js, the authentication goes fine, and returns the calendar as well, but i have used this:</p>
  <pre><code>var graph = require('@microsoft/microsoft-graph-client');
  require('isomorphic-fetch');
  
  module.exports = {
    getUserDetails: async function(accessToken) {
      const client = getAuthenticatedClient(accessToken);
  
      const user = await client.api('/me').get();
      return user;
    },
  
    // GetEventsSnippet
    getEvents: async function(accessToken) {
      const client = getAuthenticatedClient(accessToken);
  
      const events = await client
        .api('/me/events')
        .select('subject,organizer,start,end')
        .orderby('createdDateTime DESC')
        .get();
  
      return events;
    },
  
  
    getDrives: async function(accessToken) {
      const client = getAuthenticatedClient(accessToken);
  
      try{
        const drive = await client
              .api('/me/drive/root/children')
              .get();
  
        console.log(drive);
        return drive;
      } catch (e) {
        console.log(e);
      }
    }
  };
  
  function getAuthenticatedClient(accessToken) {
    // Initialize Graph client
    const client = graph.Client.init({
      // Use the provided access token to authenticate
      // requests
      authProvider: (done) =&gt; {
        done(null, accessToken);
      }
    });
    console.log(client);
    return client;
  }
  
  </code></pre>
  <p>And it don't return anything... But saying that im unauthenticated</p>
  <p>I am following this documentation: <a href="https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/drive_list?view=odsp-graph-online" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/drive_list?view=odsp-graph-online</a></p>
  <p>How can i make this work?</p>