@keystrokehq/platform 0.0.171 → 0.0.172

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/start.cjs CHANGED
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_start = require("./start-uYyPk7oF.cjs");
2
+ const require_start = require("./start-CfZfvlbY.cjs");
3
3
  exports.startPlatformServer = require_start.startPlatformServer;
package/dist/start.d.cts CHANGED
@@ -174,7 +174,8 @@ type CreateAuthOptions = {
174
174
  secret?: string;
175
175
  baseURL?: string; /** Device flow page — defaults to `/device` on baseURL. Set to web origin when auth API is elsewhere. */
176
176
  verificationUri?: string;
177
- trustedOrigins?: string[];
177
+ trustedOrigins?: string[]; /** Parent domain for cross-subdomain session cookies (e.g. keystroke.ai). */
178
+ crossSubDomainCookieDomain?: string;
178
179
  };
179
180
  declare function createAuthInstance(options: Required<Pick<CreateAuthOptions, "secret" | "baseURL">> & CreateAuthOptions): import("better-auth").Auth<{
180
181
  user: {
@@ -974,9 +975,6 @@ declare function createAuthInstance(options: Required<Pick<CreateAuthOptions, "s
974
975
  clientSecret: string;
975
976
  };
976
977
  } | undefined;
977
- secret: string;
978
- baseURL: string;
979
- trustedOrigins: string[] | undefined;
980
978
  account: {
981
979
  accountLinking: {
982
980
  enabled: true;
@@ -992,6 +990,15 @@ declare function createAuthInstance(options: Required<Pick<CreateAuthOptions, "s
992
990
  };
993
991
  };
994
992
  };
993
+ advanced?: {
994
+ crossSubDomainCookies: {
995
+ enabled: true;
996
+ domain: string;
997
+ };
998
+ } | undefined;
999
+ secret: string;
1000
+ baseURL: string;
1001
+ trustedOrigins: string[] | undefined;
995
1002
  }>;
996
1003
  /** Returns undefined when no secret is configured (auth disabled). */
997
1004
  type Auth = ReturnType<typeof createAuthInstance>;
package/dist/start.d.mts CHANGED
@@ -176,7 +176,8 @@ type CreateAuthOptions = {
176
176
  secret?: string;
177
177
  baseURL?: string; /** Device flow page — defaults to `/device` on baseURL. Set to web origin when auth API is elsewhere. */
178
178
  verificationUri?: string;
179
- trustedOrigins?: string[];
179
+ trustedOrigins?: string[]; /** Parent domain for cross-subdomain session cookies (e.g. keystroke.ai). */
180
+ crossSubDomainCookieDomain?: string;
180
181
  };
181
182
  declare function createAuthInstance(options: Required<Pick<CreateAuthOptions, "secret" | "baseURL">> & CreateAuthOptions): import("better-auth").Auth<{
182
183
  user: {
@@ -976,9 +977,6 @@ declare function createAuthInstance(options: Required<Pick<CreateAuthOptions, "s
976
977
  clientSecret: string;
977
978
  };
978
979
  } | undefined;
979
- secret: string;
980
- baseURL: string;
981
- trustedOrigins: string[] | undefined;
982
980
  account: {
983
981
  accountLinking: {
984
982
  enabled: true;
@@ -994,6 +992,15 @@ declare function createAuthInstance(options: Required<Pick<CreateAuthOptions, "s
994
992
  };
995
993
  };
996
994
  };
995
+ advanced?: {
996
+ crossSubDomainCookies: {
997
+ enabled: true;
998
+ domain: string;
999
+ };
1000
+ } | undefined;
1001
+ secret: string;
1002
+ baseURL: string;
1003
+ trustedOrigins: string[] | undefined;
997
1004
  }>;
998
1005
  /** Returns undefined when no secret is configured (auth disabled). */
999
1006
  type Auth = ReturnType<typeof createAuthInstance>;
package/dist/start.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as startPlatformServer } from "./start-avYKDymy.mjs";
1
+ import { t as startPlatformServer } from "./start-CCSEG2WQ.mjs";
2
2
  export { startPlatformServer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/platform",
3
- "version": "0.0.171",
3
+ "version": "0.0.172",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dallinbentley/keystroke.git",