public function verify($assertion) {
		$response = $this->_post(array(
			'audience' => $this->audience,
			'assertion' => $assertion
		));

		if ($response->status !== 'okay') {
			throw new Exception('Invalid assertion - ' . $response->reason);
		}

		return $response;
	}
public function verify($assertion) {
		$response = $this->_post(array(
			'audience' => $this->audience,
			'assertion' => $assertion
		));

		if ($response->status !== 'okay') {
			throw new Exception('Invalid assertion - ' . $response->reason);
		}

		return $response;
	}
public function verify ( $ assertion ) { $ response = $ this -> _post ( array ( 'audience' => $ this -> audience , 'assertion' => $ assertion ) ) ; if ( $ response -> status !== 'okay' ) { throw new Exception ( 'Invalid assertion - ' . $ response -> reason ) ; } return $ response ; }
Verifies a BrowserID assertion

@param string $assertion  assertion to be verified
@return object
BrowserID verification response object with the following attributes:
email: email address of the user
audience: hostname that the assertion is valid for
expires: expiration timestamp of the assertion
issuer: the entity who issued the assertion
@throws \browserid\Exception
Verifies a BrowserID assertion