@commercengine/storefront-sdk 0.6.1 → 0.8.0
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/README.md +0 -12
- package/dist/index.cjs +1888 -199
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2662 -700
- package/dist/index.d.ts +2662 -700
- package/dist/index.iife.js +1888 -204
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +1888 -205
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -170,18 +170,6 @@ import { MemoryTokenStorage } from "@commercengine/storefront-sdk";
|
|
|
170
170
|
const tokenStorage = new MemoryTokenStorage();
|
|
171
171
|
```
|
|
172
172
|
|
|
173
|
-
#### Next.js Universal (recommended for Next.js apps)
|
|
174
|
-
```typescript
|
|
175
|
-
import { NextJSTokenStorage } from "@commercengine/storefront-sdk";
|
|
176
|
-
|
|
177
|
-
const tokenStorage = new NextJSTokenStorage({
|
|
178
|
-
prefix: "myapp_",
|
|
179
|
-
maxAge: 30 * 24 * 60 * 60, // 30 days
|
|
180
|
-
secure: true, // Auto-detects HTTPS in browser
|
|
181
|
-
sameSite: "Lax",
|
|
182
|
-
});
|
|
183
|
-
```
|
|
184
|
-
|
|
185
173
|
#### Custom Storage
|
|
186
174
|
```typescript
|
|
187
175
|
class CustomTokenStorage implements TokenStorage {
|