src/net/authV2.js
/**
     * Compute the canonical query parameters.
     * 
     * @returns {string} the canonical query parameters string value
     */
Compute the canonical query parameters.

@returns {string} the canonical query parameters string value
Compute the canonical query parameters . @returns { string } the canonical query parameters string value
canonicalQueryParameters() {
        const keys = this.parameters.keySet();
        if ( keys.length < 1 ) {
            return '';
        }
        keys.sort();
        const len = keys.length;
        var first = true,
            result = '';
        for ( let i = 0; i < len; i += 1 ) {
            let key = keys[i];
            let vals = this.parameters.value(key);
            const valsLen = vals.length;
            for ( let j = 0; j < valsLen; j += 1 ) {
                if ( first ) {
                    first = false;
                } else {
                    result += '&';
                }
                result += _encodeURIComponent(key) + '=' + _encodeURIComponent(vals[j]);
            }
        }
        return result;
    }
canonicalQueryParameters ( ) { const keys = this . parameters . keySet ( ) ; if ( keys . length < 1 ) { return '' ; } keys . sort ( ) ; const len = keys . length ; var first = true , result = '' ; for ( let i = 0 ; i < len ; i += 1 ) { let key = keys [ i ] ; let vals = this . parameters . value ( key ) ; const valsLen = vals . length ; for ( let j = 0 ; j < valsLen ; j += 1 ) { if ( first ) { first = false ; } else { result += '&' ; } result += _encodeURIComponent ( key ) + '=' + _encodeURIComponent ( vals [ j ] ) ; } } return result ; }
Compute the canonical query parameters.
Compute the canonical query parameters .