/**
 * Adds the ID of the user object stored on our database
 * to the token returned from Auth0
 */
function (user, context, callback) {
  var namespace = 'https://techbikers.com/';
  context.idToken[namespace + 'user_id'] = user.app_metadata.id;
  callback(null, user, context);
}

@@ -176,16 +176,114 @@
 .com/';%0A
+%0A  // If the user has app_metadata then inject the ID into the token%0A  if (user.app_metadata) %7B%0A  
   contex
@@ -339,16 +339,21 @@
 ata.id;%0A
+  %7D%0A%0A
   callba

Check to make sure app_metadata exists