@commercengine/storefront-sdk 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -84,3 +84,4 @@ export default StorefrontSDK;
84
84
  export { StorefrontAPIClient, CatalogClient, CartClient, AuthClient };
85
85
  export { Environment };
86
86
  export { TokenStorage, MemoryTokenStorage, BrowserTokenStorage, CookieTokenStorage, NextCookieTokenStorage, createTokenStorage, } from "./lib/auth";
87
+ export type { components, operations, paths } from "./types/storefront";
@@ -193,6 +193,7 @@ export declare class CookieTokenStorage implements TokenStorage {
193
193
  path: string;
194
194
  secure: boolean;
195
195
  sameSite: string;
196
+ httpOnly: boolean;
196
197
  maxAge: number;
197
198
  });
198
199
  /**
package/dist/lib/auth.js CHANGED
@@ -453,7 +453,8 @@ class CookieTokenStorage {
453
453
  constructor(prefix = "storefront_", cookieOptions = {
454
454
  path: "/",
455
455
  secure: true,
456
- sameSite: "strict",
456
+ sameSite: "lax",
457
+ httpOnly: true,
457
458
  maxAge: 60 * 60 * 24 * 30, // 30 days
458
459
  }) {
459
460
  this.accessTokenKey = `${prefix}access_token`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercengine/storefront-sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "TypeScript SDK for the Storefront API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",