WooAuthenticationApi extension

Extension providing authentication-related API methods for WooCommerce.

This extension adds methods for user authentication, registration, password management, and session handling.

on

Methods

changePassword(String password) Future<void>

Available on WooCommerce, provided by the WooAuthenticationApi extension

Changes the password for the currently logged-in user.
forgotPassword(String email) Future<({String code, int userId})>

Available on WooCommerce, provided by the WooAuthenticationApi extension

Initiates a password reset process for the given email address.
login(String email, String password) Future<void>

Available on WooCommerce, provided by the WooAuthenticationApi extension

Authenticates a user with email and password.
logout() Future<void>

Available on WooCommerce, provided by the WooAuthenticationApi extension

Logs out the currently logged-in user.
register(WooCustomer customer) Future<void>

Available on WooCommerce, provided by the WooAuthenticationApi extension

Registers a new customer account.