Auth
Customer authentication scoped to a store. Routes live under `/store/:storeCode/auth/...`; the actor type is always customer. Use `sdk.store.auth` for storefront customers — not root `sdk.auth`, which is for platform admin (`user`) and vendor (`member`) actors. In session mode (`auth.type: "session"`), the SDK exchanges the JWT for a cookie via `POST /auth/session`; use `sdk.auth.logout()` and `sdk.auth.refresh()` for shared session lifecycle.
sdk.store.auth · @aiminaabeejs/js-sdk
Register CustomerRegister a customer identity and create the customer record. Returns a JWT for subsequent authenticated requests.Authenticate CustomerAuthenticate a customer and receive a JWT, or start a third-party OAuth redirect.Auth CallbackComplete an OAuth callback and exchange it for a JWT.Reset PasswordRequest a password-reset token (delivered out-of-band).Update ProviderUpdate provider auth data (e.g. set a new password with a reset token).