examples/oauth/webserver/oauth_webserver.js
function createClient() {
  return Asana.Client.create({
    clientId: clientId,
    clientSecret: clientSecret,
    redirectUri: 'http://localhost:' + port + '/oauth_callback'
  });
}
function createClient() {
  return Asana.Client.create({
    clientId: clientId,
    clientSecret: clientSecret,
    redirectUri: 'http://localhost:' + port + '/oauth_callback'
  });
}
function createClient ( ) { return Asana . Client . create ( { clientId : clientId , clientSecret : clientSecret , redirectUri : 'http://localhost:' + port + '/oauth_callback' } ) ; }
Create an Asana client. Do this per request since it keeps state that shouldn't be shared across requests.
Create an Asana client . Do this per request since it keeps state that shouldn t be shared across requests .