invalidate method
Initiates a logout request by displaying the logout page within a web session. It invalidates the user's identity and removes all associated tokens. After this function is called, the credentials will no longer be usable.
Return Value: True if the logout request is successful, otherwise false.