feature-auth setup
Styles
Import them once, in the stylesheet where you load Tailwind:
@import "@evolve-storefront/feature-auth/styles.css";Translations
The package ships its texts in @evolve-storefront/feature-auth/messages. evolve messages merges them into your message files and never overwrites a text you changed.
AuthProvider
Single provider for the auth feature. Supplies the app-owned session seam the
forms/hooks delegate to on success — feature-auth never sets cookies itself
(AUTH-R-B4/B6). Email + password only; the identity provider is a seam.
import { AuthProvider } from "@evolve-storefront/feature-auth/provider";| Prop | Type | Description |
|---|---|---|
children | ReactNode | |
onAuthenticated? | ((customer: AuthCustomer) => void) | Called after a successful login / register / password-reset (set the session). |
onLoggedOut? | (() => void) | Called after a successful logout (tear down the session). |
logout? | (() => Promise<void>) | End the session where the refresh token cookie is sent — |
redirectAfterLogin? | string | Where a document navigation goes after signing in, unless the URL's |
redirectAfterLogout? | string | Where a document navigation goes after signing out. |

