AuthModule
Sign-in for Salesforce Commerce Cloud: login, logout and token refresh, and the session routes a storefront calls before it has a token.
import { AuthModule } from "@evolve-framework/sfcc/modules";Serves the Authentication part of the GraphQL API: cartMergeUndo, createGuestSession, customerLogin, customerLogout, customerPasswordReset, customerPasswordResetRequest, customerPasswordUpdate, refreshToken.
new AuthModule(options: { config: AuthModuleConfig; clientFactory: ClientFactory; })| Option | Type | Description |
|---|---|---|
config | AuthModuleConfig | The SLAS client, site, organization and short code that guest and customer tokens are requested from, refreshed with and revoked against. |
clientFactory | ClientFactory | The client |
AuthModuleConfig5The fields of config.
| Field | Type | Description |
|---|---|---|
SFCC_CLIENT_ID | string | |
SFCC_SITE_ID | string | |
SFCC_ORGANIZATION_ID | string | |
SFCC_SHORT_CODE | string | |
SFCC_CLIENT_SECRET? | string |
Extends AbstractModule<SfccLoaderContext>.
The same module on commercetools and medusa.

