feature-auth advanced
Everything else the package exports, for when you go beyond its components and hooks, such as your own queries or cache updates. Most projects never need these.
Contexts3
AuthContext | The context AuthProvider fills.@evolve-storefront/feature-auth/context |
useAuthContext | Read the injected session seam. @evolve-storefront/feature-auth/context |
AuthContextValue | Injected session seam for the auth feature. @evolve-storefront/feature-auth/context |
Data and cache helpers4
loginHref | A link to the login page that brings the visitor back to returnTo afterwards.@evolve-storefront/feature-auth |
returnToPath | Where to go after signing in: the query's returnTo when safe, else fallback.@evolve-storefront/feature-auth |
scorePassword | Score a password 0–4 for guidance only — never enforcement (AUTH §4). @evolve-storefront/feature-auth |
RETURN_TO_PARAM | The query parameter a login link carries the page to come back to in. @evolve-storefront/feature-auth |
Schemas4
LoginFormSchema | Login form schema — one source of truth, client + server. @evolve-storefront/feature-auth/schemas |
PasswordResetFormSchema | Set-new-password schema. @evolve-storefront/feature-auth/schemas |
PasswordResetRequestFormSchema | Password-reset request schema — email only. @evolve-storefront/feature-auth/schemas |
RegisterFormSchema | Register form schema — client + server. @evolve-storefront/feature-auth/schemas |
Other functions and constants6
CustomerCreate | Registers a new customer account. @evolve-storefront/feature-auth/documents |
CustomerExists | Whether an account exists for an email address. @evolve-storefront/feature-auth/documents |
CustomerLogin | Signs a customer in with email and password. @evolve-storefront/feature-auth/documents |
CustomerLogout | Signs the current customer out. @evolve-storefront/feature-auth/documents |
CustomerPasswordReset | Sets a new password with the token from the reset email. @evolve-storefront/feature-auth/documents |
CustomerPasswordResetRequest | Sends a password reset email to the address given. @evolve-storefront/feature-auth/documents |
Types17
AuthCartMerge | What a sign-in did with the session's guest cart (schema CartMerge), for feature-cart's CartMergeNotice.@evolve-storefront/feature-auth |
AuthCustomer | The authenticated customer (subset returned by the auth mutations). @evolve-storefront/feature-auth |
AuthenticationErrorCode | AuthenticationError.code (login) — displayed at the form level.@evolve-storefront/feature-auth |
CustomerCreateInput | Input for customerCreate (schema CustomerCreateInput).@evolve-storefront/feature-auth |
PasswordResetErrorCode | PasswordResetError.code (set-new) — displayed at the form level.@evolve-storefront/feature-auth |
PasswordScore | A password strength score from 0 (weakest) to 4 (strongest). @evolve-storefront/feature-auth |
Salutation | Optional salutation (schema Salutation).@evolve-storefront/feature-auth |
LoginFormInput | @evolve-storefront/feature-auth/schemas |
PasswordResetFormInput | @evolve-storefront/feature-auth/schemas |
PasswordResetRequestFormInput | @evolve-storefront/feature-auth/schemas |
RegisterFormInput | @evolve-storefront/feature-auth/schemas |
ReturningCustomer | @evolve-storefront/feature-auth/hooks |
UseLoginFormResult | @evolve-storefront/feature-auth/hooks |
UsePasswordResetFormResult | @evolve-storefront/feature-auth/hooks |
UsePasswordResetRequestFormResult | @evolve-storefront/feature-auth/hooks |
UseRegisterFormResult | @evolve-storefront/feature-auth/hooks |
LoginFormBinding | The props a sign-in hook supplies — spread onto <LoginFormView>.@evolve-storefront/feature-auth/login-form |
Not listed: 14 props and options types. They appear as the tables on the pages of what they type.

