Custom claims require "http://" or "https:" prefix but only sometimes?

John:
thanks for confirming. No error is thrown that we can find. When attaching Real Time Webtask logs we would see the console output we are adding data to token... from the code below. No errors are shown, however, the returned token would not contain the values.
The values would only be in the token when we prefix the namespace with http:// or https://.
e.g. this works: var namespace = “http://a8987sfdh”;

  var namespace = "a8987sfdh";
  if (context.idToken && user.user_metadata) {
    console.log("we are adding data to token...");
    // add extra data to token
    if (user.user_metadata.first_version) context.idToken[namespace + 'first_version'] = user.user_metadata.first_name;