@~lyre/auth 0.11.0 → 0.11.1

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.
@@ -94,7 +94,7 @@ async function handleAccountsCallback(input) {
94
94
  };
95
95
  }
96
96
  async function exchangeAuthorizationCode(input) {
97
- if (input.config.useMock || input.code.startsWith("demo_")) {
97
+ if (input.config.useMock) {
98
98
  return createMockTokenResponse(input.code);
99
99
  }
100
100
  const fetchImpl = input.fetchImpl ?? fetch;
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  serviceKeyFromRequest,
16
16
  syncAccountsUser,
17
17
  verifyWebhookSignature
18
- } from "./chunk-TQNQLX3C.js";
18
+ } from "./chunk-MJ74QDOO.js";
19
19
  export {
20
20
  beginAccountsLoginRedirect,
21
21
  clearPlatformSessionCookie,
package/dist/nest.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  scopeSatisfied,
5
5
  serviceKeyFromRequest,
6
6
  verifyWebhookSignature
7
- } from "./chunk-TQNQLX3C.js";
7
+ } from "./chunk-MJ74QDOO.js";
8
8
 
9
9
  // src/nest.ts
10
10
  import { createHash } from "crypto";
package/dist/sveltekit.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  readPlatformSessionCookie,
10
10
  serviceKeyFromRequest,
11
11
  verifyWebhookSignature
12
- } from "./chunk-TQNQLX3C.js";
12
+ } from "./chunk-MJ74QDOO.js";
13
13
 
14
14
  // src/sveltekit.ts
15
15
  import { createHash } from "crypto";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@~lyre/auth",
3
- "version": "0.11.0",
4
- "description": "Shared Axis Accounts auth SDK \u2014 framework-agnostic session/identity core (HMAC-signed cookies, accounts login/callback/logout) plus an optional turnkey SvelteKit adapter.",
3
+ "version": "0.11.1",
4
+ "description": "Shared Axis Accounts auth SDK — framework-agnostic session/identity core (HMAC-signed cookies, accounts login/callback/logout) plus an optional turnkey SvelteKit adapter.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "license": "MIT",
@@ -51,7 +51,8 @@
51
51
  ],
52
52
  "scripts": {
53
53
  "build": "tsup src/index.ts src/sveltekit.ts src/nest.ts src/admin.ts --format esm --dts --clean",
54
- "check": "tsc --noEmit"
54
+ "check": "tsc --noEmit",
55
+ "test": "vitest run"
55
56
  },
56
57
  "peerDependencies": {
57
58
  "@sveltejs/kit": "^2.0.0"
@@ -65,7 +66,8 @@
65
66
  "@sveltejs/kit": "^2.0.0",
66
67
  "@types/node": "^22",
67
68
  "tsup": "^8.3.5",
68
- "typescript": "^6.0.2"
69
+ "typescript": "^6.0.2",
70
+ "vitest": "^4.1.12"
69
71
  },
70
72
  "publishConfig": {
71
73
  "access": "public"