code: public static String getUserNameFromToken(String authToken) {
          if (null == authToken) {
              return null;
          }
  
          return authToken.split(TOKEN_SEPARATOR)[0];
      }
docs: Extracts the user name from token.
  
  @param authToken token containing username.
  @return username or null if token is null.