docs: function getAccessToken(authCode, callback) {
  	debug('Getting access token');
  	var responseJSON;
  	if (refreshToken.length > 0) {
  		request.post(psnURL.oauth, {form:{ // Refreshing the token with refresh_token to avoid login again
  				 'grant_type'	: 'refresh_token'
  				,'client_id'	: psnVars.client_id
  				,'client_secret': psnVars.client_secret
  				,'refresh_token': refreshToken
  				,'redirect_uri'	: psnVars.redirectURL_oauth
  				,'state' 		: 'x'
  				,'scope'		: psnVars.scope_psn
  				,'duid' 		: psnVars.duid
  			}}, function (error, response, body) {
  				responseJSON = JSON.parse(body);
  				if (!error) {
  					if ('access_token' in responseJSON && !('error' in responseJSON)) {
  						accessToken = responseJSON.access_token;
  						refreshToken = responseJSON.refresh_token;
  						debug('access_token obtained by using refresh_token: ' + accessToken)
  						if (typeof callback === "function") callback();
  					}
  					else {
  						debug('ERROR: ' + responseJSON)
  					}
  				}
  				else {
  					debug('ERROR: ' + error)
  				}
  		})
  	}
  	else {
  		debug('Login for the first time');
  		request.post(psnURL.oauth, {form:{ // Firts time login
  				 'grant_type'	: 'authorization_code'
  				,'client_id'	: psnVars.client_id
  				,'client_secret': psnVars.client_secret
  				,'code' 		: authCode
  				,'redirect_uri'	: psnVars.redirectURL_oauth
  				,'state' 		: 'x'
  				,'scope'		: psnVars.scope_psn
  				,'duid' 		: psnVars.duid
  			}}, function (error, response, body) {
  				responseJSON = JSON.parse(body);
  				if (!error) {
  					if ('access_token' in responseJSON && !('error' in responseJSON)) {
  						accessToken = responseJSON.access_token;
  						refreshToken = responseJSON.refresh_token;
  						clearInterval(refreshInterval);
  						refreshInterval = setInterval(function() {
  							getAccessToken('', function() {
  								debug('access_token refreshed after 59 minutes')
  							})
  						}, (responseJSON.expires_in - 60) * 1000) // 59 minutes
  						debug('access_token/refresh_token obtained: ' + body);
  						if (typeof callback === "function") callback();
  					}
  					else {
  						debug('ERROR: ' + JSON.stringify(responseJSON))
  					}
  				}
  				else {
  					debug('ERROR: ' + JSON.stringify(error))
  				}
  		})	
  	}
  }