website logo
Navigate through spaces
⌘K
OVERVIEW
ORDER MANAGEMENT (OMS)
SHIPPING - SETUP
Shipping Methods
Shipping Zones
Shipping Method Setup Examples
TAXES - Setup
Tax Automation with Stripe Tax
Tax Automation with Avalara
CONTENT MANAGEMENT (CMS)
DATA
CUSTOMER LIFETIME REVENUE
Customer Lifetime Revenue Explanation
Customer Lifetime Revenue and Purchase Likelihood
Recency Frequency and Monetary
CLR and RFM Data Table Glossary
RFM and CLR in the Hub
LOOKER
Modifying a Dashboard
Timestamp differences between Looker, OMS and Shopify
How to create custom calculations in Looker
Looker and Shopify data models
Custom fields
How to 'Save and Schedule' reports
Creating Custom Reports or Look
Looks vs Dashboards
Login Looker FAQ
Looker Glossary
SEGMENT EVENT TRACKING
What are event tracking
Adding Tracking
What is the Tracking Plan?
The Chord Tracking Plan
The Shopify Tracking Plan
Event Tracking FAQ
EVENT UPDATES PAGE
Email Subscription Payment Event Update
Product Feed Setup
Getting Segment to Production
Consent Management
Installing in Next.js
Installing in Gatsby
Integrations
👩‍💻Developer Tools
Using Chord with Shopify
Docs powered by archbee 

useAuth

12min

The useAuth hook returns a series of methods that enable authentication with a Shopify customer account.

useAuth


isLoggedIn

Boolean indicating whether a user is currently logged in.

status

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:

status


getToken()

Retrieves the current Shopify customer access token.

Example:

getToken


login()

Submits the email address and password for a Shopify customer and initiates an authentication session. This method creates a Shopify customer access token.

Example:

login


logout()

Clears the authentication session. This method destroys the current Shopify customer access token.

Example:

logout


recover()

Sends a Shopify reset password email to the customer.

Example:

recover


register()

Creates a new Shopify customer and initiates an authentication session. This method creates a Shopify customer access token.

Example:

register


resetPassword()

Resets a Shopify customer’s password with an id and token from a Shopify reset password email.

Example:

resetPassword




Updated 03 Mar 2023
Did this page help you?
Yes
No
PREVIOUS
useAnalytics
NEXT
useCart
Docs powered by archbee 
useAuth