lib/token/index.js
function __process_authorization_header_for_user(request_params) {
    return new Promise(async (resolve, reject) => {
        try {
            const user_account_id = await user_info_endpoint
                .user_account_registrar_module
                .get_user_account_id_for_credentials(request_params.authorization_credentials.username, request_params.authorization_credentials.password);
            return resolve(request_params);
        } catch (err) {
            return reject(err);
        }
    });
}
function __process_authorization_header_for_user(request_params) {
    return new Promise(async (resolve, reject) => {
        try {
            const user_account_id = await user_info_endpoint
                .user_account_registrar_module
                .get_user_account_id_for_credentials(request_params.authorization_credentials.username, request_params.authorization_credentials.password);
            return resolve(request_params);
        } catch (err) {
            return reject(err);
        }
    });
}
function __process_authorization_header_for_user ( request_params ) { return new Promise ( async ( resolve , reject ) => { try { const user_account_id = await user_info_endpoint . user_account_registrar_module . get_user_account_id_for_credentials ( request_params . authorization_credentials . username , request_params . authorization_credentials . password ) ; return resolve ( request_params ) ; } catch ( err ) { return reject ( err ) ; } } ) ; }
The credentials will be checked with the user_registrar.

If no user account matches the credentials, then, the
request is denied.

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