title: Include user_metadata and app_metadata in JWT using Auth0
body: <p>I am using Angular 2 and Auth0 for authentication on my web app. I am able to get the user profile using the following code:</p>
  
  <pre><code>auth0 = new auth0.WebAuth({
      domain: 'MY-DOMAIN',
      clientID: 'MY-CLIENT-ID',
      callbackURL: 'MY-CALLBACK',
      responseType: 'token id_token'
  });
  </code></pre>
  
  <p>Login:</p>
  
  <pre><code>public login(username: string, password: string): void {
      this.auth0.client.login({
        realm: 'Username-Password-Authentication',
        username,
        password
      }, (err: any, authResult: any) =&gt; {
        if (err) {
          alert('Error: ' + err.description);
          return;
        }
        if (authResult &amp;&amp; authResult.idToken &amp;&amp; authResult.accessToken) {
          this.setUser(authResult); &lt;--- Here is where I get the profile
          this.router.navigate(['/home']);
        }
      });
  }
  </code></pre>
  
  <p>Saving <code>token</code> on <code>localStorage</code> and getting the profile:</p>
  
  <pre><code>private setUser(authResult: any): void {
      localStorage.setItem('access_token', authResult.accessToken);
      localStorage.setItem('id_token', authResult.idToken);
  
      this.auth0.client.userInfo(authResult.accessToken, (error: any, profile: any) =&gt; {
        if (!error) {
          localStorage.setItem('profile', JSON.stringify(profile));
          this.userProfile = profile;
        }
      });
  }
  </code></pre>
  
  <p>So this works, but the profile object I get doesn't include the user_metadata or the app_metadata configured on the Auth0 website. How can I include it?</p>