// Get the token from the request $token = JRequest::getVar('token'); // Verify the token JRequest::checkToken($token);In this example, we first retrieve the token from the request using the `getVar` method. We then pass the token to the `checkToken` method to verify it. If the token does not match the one in the session, the function will throw a `JAuthenticationException`. JRequest checkToken is part of the Joomla Framework package library.