useAuth
The useAuth hook returns a series of methods that enable authentication with a Shopify customer account.
Boolean indicating whether a user is currently logged in.
String indicating the status of authentication in Redux. This string can be used to determine if the authentication status has been verified yet, which happens asynchronously after page load.
Example:
Retrieves the current Shopify customer access token.
Example:
Submits the email address and password for a Shopify customer and initiates an authentication session. This method creates a Shopify customer access token.
Example:
Clears the authentication session. This method destroys the current Shopify customer access token.
Example:
Sends a Shopify reset password email to the customer.
Example:
Creates a new Shopify customer and initiates an authentication session. This method creates a Shopify customer access token.
Example:
Resets a Shopify customerβs password with an id and token from a Shopify reset password email.
Example:
ο»Ώ