'use strict';

var Client = require('./ifrau-client');

var REQUEST_KEY = require('./request-key');

module.exports = function getFramedJwt(scope) {
	return Client
		.then(function(client) {
			return new client().connect();
		})
		.then(function(connectedClient) {
			return connectedClient.request(REQUEST_KEY, scope);
		});
};

'use strict';

var clientPromise = require('./ifrau-client');

var REQUEST_KEY = require('./request-key');

module.exports = function getFramedJwt(scope) {
	return clientPromise
		.then(function(Client) {
			return new Client().connect();
		})
		.then(function(client) {
			return client.request(REQUEST_KEY, scope);
		});
};

Make variable naming more specific
Make variable naming more specific
