AuthBridge

cart · /next·interface

Pluggable identity bridge for update-buyer-identity mutations in . Wire this to your auth session source so the cart layer can attach the active buyer without depending on a specific auth library.

Properties

resolve
unknown

Example

const authBridge: AuthBridge = {
    resolve: async () => ({ email: 'buyer@example.com' }),
};

CartIdStorage CreateTypedCartActionsOpts FormCartActions HttpOnlyCookieStorageOpts NextEventBridge TypedCartActions NextEventBridgeHandlers createCartEnsurer

On this page