@lepsto/sdk-app 87.0.1 → 87.1.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.
@@ -15,7 +15,8 @@ import { createLesslyApp } from '@lepsto/sdk-app';
15
15
  const sdk = createLesslyApp({
16
16
  baseUrl: 'https://api.lessly.dev',
17
17
  productId: 'prod_123',
18
- // getCsrfToken defaults to reading the `lessly_csrf` cookie; override for SSR/tests.
18
+ // getCsrfToken defaults to reading the `lepsto_csrf` cookie (falling back to
19
+ // the legacy `lessly_csrf`); override for SSR/tests.
19
20
  });
20
21
 
21
22
  const connectors = await sdk.organization.connectors.list({ productId: 'prod_123' });
@@ -72,8 +73,8 @@ try {
72
73
 
73
74
  ### Missing CSRF cookie
74
75
 
75
- Mutating calls (`POST`, `PUT`, `PATCH`, `DELETE`) require the `lessly_csrf`
76
- cookie. If it is absent, the SDK throws before any network call:
76
+ Mutating calls (`POST`, `PUT`, `PATCH`, `DELETE`) require the `lepsto_csrf`
77
+ cookie, or the legacy `lessly_csrf` one as a fallback. If both are absent, the SDK throws before any network call:
77
78
  `LesslyApiError` with `status: 0` and `code: 'csrf_cookie_missing'`. There is no
78
79
  retry and no hidden token refresh — re-establish the session, or supply
79
80
  `getCsrfToken` for SSR/tests. Read-only calls are unaffected.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lepsto/sdk-app",
3
3
  "description": "The Lepsto SDK for App is a TypeScript SDK that provides runtime bindings and type-safe generated code for interacting with Lepsto Platform APIs and services. This package generates type definitions and client bindings from API catalogs, enabling developers to build applications that consume Lepsto platform services with full type safety and autocompletion.",
4
- "version": "87.0.1",
4
+ "version": "87.1.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/lepsto/lepsto-sdk-app.git"