Added a method to verify the current authorization status.