lib/token/index.js
function __process_authorization_header_for_client(request_params) {
    return new Promise(async (resolve, reject) => {
        try {
            const client_account_id = await client_endpoint
                .client_registrar_module
                .get_client_account_id_for_credentials(request_params.authorization_credentials.username, request_params.authorization_credentials.password);

            return resolve(request_params);
        } catch (err) {
            return reject(new Error("Unauthorized request"));
        }
    });
}
function __process_authorization_header_for_client(request_params) {
    return new Promise(async (resolve, reject) => {
        try {
            const client_account_id = await client_endpoint
                .client_registrar_module
                .get_client_account_id_for_credentials(request_params.authorization_credentials.username, request_params.authorization_credentials.password);

            return resolve(request_params);
        } catch (err) {
            return reject(new Error("Unauthorized request"));
        }
    });
}
function __process_authorization_header_for_client ( request_params ) { return new Promise ( async ( resolve , reject ) => { try { const client_account_id = await client_endpoint . client_registrar_module . get_client_account_id_for_credentials ( request_params . authorization_credentials . username , request_params . authorization_credentials . password ) ; return resolve ( request_params ) ; } catch ( err ) { return reject ( new Error ( "Unauthorized request" ) ) ; } } ) ; }
The authorization header credentials will be checked with the clien_registrar.

@param  {[type]} request_params [description]
@return {[type]}                [description]
The authorization header credentials will be checked with the clien_registrar .