function decodeToken(token) {
                var parts = token.split('|'),
                    map = {},
                    i,
                    fieldParts, key, value;
                for (i = 0; i < parts.length; i += 1) {
                    fieldParts = parts[i].split('=');
                    key = fieldParts[0];
                    value = fieldParts[1];
                    map[key] = value;
                }
                return map;
            }
/**
             * Decodes a Globus authentication token, transforming the token
             * plain string into a map of field names to values.
             * 
             * @function decodeToken
             * @private
             * 
             * @param {string} - A globus auth token
             * 
             * @returns {GlobusAuthToken} an object representing the decoded
             * token.
             */
Decodes a Globus authentication token, transforming the token
plain string into a map of field names to values.

@function decodeToken
@private

@param {string} - A globus auth token

@returns {GlobusAuthToken} an object representing the decoded
token.
Decodes a Globus authentication token transforming the token plain string into a map of field names to values . @function decodeToken @private @param { string } - A globus auth token @returns { GlobusAuthToken } an object representing the decoded token .
function decodeToken(token) {
                var parts = token.split('|'),
                    map = {},
                    i,
                    fieldParts, key, value;
                for (i = 0; i < parts.length; i += 1) {
                    fieldParts = parts[i].split('=');
                    key = fieldParts[0];
                    value = fieldParts[1];
                    map[key] = value;
                }
                return map;
            }
function decodeToken ( token ) { var parts = token . split ( '|' ) , map = { } , i , fieldParts , key , value ; for ( i = 0 ; i < parts . length ; i += 1 ) { fieldParts = parts [ i ] . split ( '=' ) ; key = fieldParts [ 0 ] ; value = fieldParts [ 1 ] ; map [ key ] = value ; } return map ; }
Decodes a Globus authentication token, transforming the token
 plain string into a map of field names to values.
Decodes a Globus authentication token transforming the token plain string into a map of field names to values .