logout method

Future<void> logout()

Logs out the currently logged-in user.

This method clears the stored user ID from local storage, effectively ending the user's session.

Example

await woocommerce.logout();
print('User logged out successfully');

Implementation

Future<void> logout() async {
  await LocalStorageHelper.deleteSecurityUserId();
}