normalizeDataSource(dataSource) {
        // Assign the configuration option for backwards compatibility.
        // The correct (but undocumented) way of setting this option is to configure your data
        // source:
        // "data-source": {
        //   "options": {
        //     "rest": {
        //       "passAccessToken": true
        //     }
        //   }
        // }
        const passToken = dataSource.settings.passAccessToken === true;
        if (passToken === true) {
            // eslint-disable-next-line no-param-reassign
            dataSource.connector.remotes.serverAdapter.options.passAccessToken = true;
        }
        return dataSource;
    }
/**
     * Normalize hooks of the data source.
     *
     * Previously used to normalize the rest-connectors parameters, we will use this to propagate
     * settings which are not passed by loopback and might normalize the hooks.
     *
     * @param {DataSource} dataSource - a Loopback data source
     * @return {DataSource}
     */
Normalize hooks of the data source.
Previously used to normalize the rest-connectors parameters, we will use this to propagate
settings which are not passed by loopback and might normalize the hooks.

@param {DataSource} dataSource - a Loopback data source
@return {DataSource}
Normalize hooks of the data source . Previously used to normalize the rest - connectors parameters we will use this to propagate settings which are not passed by loopback and might normalize the hooks . @param { DataSource } dataSource - a Loopback data source @return { DataSource }
normalizeDataSource(dataSource) {
        const passToken = dataSource.settings.passAccessToken === true;
        if (passToken === true) {
            dataSource.connector.remotes.serverAdapter.options.passAccessToken = true;
        }
        return dataSource;
    }
normalizeDataSource ( dataSource ) { const passToken = dataSource . settings . passAccessToken === true ; if ( passToken === true ) { dataSource . connector . remotes . serverAdapter . options . passAccessToken = true ; } return dataSource ; }
Normalize hooks of the data source.
Normalize hooks of the data source .
// Assign the configuration option for backwards compatibility. // The correct (but undocumented) way of setting this option is to configure your data // source: // "data-source": { //   "options": { //     "rest": { //       "passAccessToken": true //     } //   } // } // eslint-disable-next-line no-param-reassign