title: Errors running sample code - Class within an exported class - Auth0 with React Node.js
body: <p>I am trying to run tutorial code for creating an authentication serve into my React project.</p>
  
  <p>Here is the code sample that they want me to run:</p>
  
  <pre><code>// src/Auth/Auth.js
  
  import auth0 from 'auth0-js';
  
  export default class Auth {
    auth0 = new auth0.WebAuth({
      domain:'domain.auth0.com',
      clientID: 'clientId',
      redirectUri: 'http://localhost:3000/callback',
      audience: 'https://myproject.auth0.com/userinfo',
      responseType: 'token id_token',
      scope: 'openid'
    });
  
    login() {
      this.auth0.authorize();
    }
  }
  </code></pre>
  
  <p>When I ran it, it throws errors about the 'import' and export' keywords. 
  So I changed it to this:</p>
  
  <pre><code>const auth0 = require("auth0-js");
  
  class Auth {
      auth = new auth0.WebAuth({
          domain: 'mydomain.auth0.com',
          clientID: 'clientID',
          redirectUri: 'http://localhost:3000/callback',
          audience: 'https://myproject.auth0.com/userinfo',
          responseType: 'token id_token',
          scope: 'openid'
    });
  
    login() {
      this.auth.authorize();
    }
  }
  
  module.exports = Auth;
  </code></pre>
  
  <p>But that gives me this error:</p>
  
  <pre><code>/Users/myname/my project/app/services/auth.js:4
      auth = new auth0.WebAuth({
           ^
  
  
  SyntaxError: Unexpected token =
      at createScript (vm.js:80:10)
      at Object.runInThisContext (vm.js:139:10)
      at Module._compile (module.js:616:28)
  </code></pre>
  
  <p>What is the correct syntax?</p>