public function get_token_data($tokenId) {
		try {
			$sql = "SELECT *, (max_uses - total_uses) as remaining_uses, "
					. "(NOW() - expiration) as time_remaining "
					. "FROM ". $this->table ." AS t1 INNER JOIN 
						cswal_token_type_table AS t2 ON (t1.token_type_id=t2.token_type_id)
						WHERE auth_token_id=:tokenId";
			try {
				$numrows = $this->db->run_query($sql, array('tokenId'=>$tokenId));

				if($numrows == 1) {
					$tokenData = $this->db->get_single_record();
				}
				elseif($numrows < 1) {
					$tokenData = false;
				}
				else {
					throw new exception("too many records returned (". count($data) .")");
				}
			} catch(Exception $e) {
				throw new exception(__METHOD__ .": Failed to retrieve token data::: ". $e->getMessage());
			}
		}
		catch(exception $e) {
			throw new exception(__METHOD__ .": failed to retrieve tokenId (". $tokenId .")::: ". $e->getMessage());
		}
		return($tokenData);
	}