Unhandled rejection Error: No Authorization

Can’t authenticate with ASANA API with Node.JS (https://github.com/Asana/node-asana). I’m getting the error below.

This is my code:

const Asana = require(‘asana’);
const util = require(‘util’);

const client = Asana.Client.create({
clientId: …,
clientSecret: ‘…’
});

client.users.me()
.then(user => {

const userId = user.gid;

const workspaceId = user.workspaces[0].gid;
return client.tasks.findAll({
  assignee: userId,
  workspace: workspaceId,
  completed_since: 'now',
  opt_fields: 'id,name,assignee_status,completed'
});

})

ERROR:

Unhandled rejection Error: No Authorization
at NoAuthorization.AsanaError (/Users/avanfeel/node_modules/asana/lib/errors/error.js:4:11)
at new NoAuthorization (/Users/avanfeel/node_modules/asana/lib/errors/no_authorization.js:5:14)
at Request._callback (/Users/avanfeel/node_modules/asana/lib/dispatcher.js:256:23)
at Request.self.callback (/Users/avanfeel/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (/Users/avanfeel/node_modules/request/request.js:1154:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage. (/Users/avanfeel/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9)

Your code client.users.me() is happening after the user authenticates himself and your server does the necessary calls right?