diff --git a/CHANGELOG.md b/CHANGELOG.md index 59d5106..a100473 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,9 @@ The three packages (`pgstencil`, `@pgstencil/auth`, `@pgstencil/stripe`) share o ## Unreleased -Nothing yet. +### Changed + +- **`@pgstencil/auth` moves its exact Better Auth pin from 1.7.18 to 1.7.28**, which changes an application's lockfile and any dependency disclosure it publishes. Better Auth's own fixes in that range change what an application can observe: sending a new email OTP replaces the earlier code for that address instead of keeping it; deleting a user, `/revoke-session` and revoking all of a user's sessions now answer an error, `FAILED_TO_DELETE_USER` for a delete, where they reported success while the row or the cached sessions survived; and `user.delete.before` runs before the session and account deletes. An application that hooks user deletion or revokes sessions should check that it handles the new errors. Better Auth draws its random IDs in a different order, so an application that snapshots IDs under a seeded `RandomSource` sees them change once. ## 0.5.1 (2026-11-10) diff --git a/examples/better-auth/package.json b/examples/better-auth/package.json index b290d92..2798662 100644 --- a/examples/better-auth/package.json +++ b/examples/better-auth/package.json @@ -9,7 +9,7 @@ "@hono/node-server": "2.1.11", "@pgstencil/auth": "workspace:*", "@pgstencil/stripe": "workspace:*", - "better-auth": "1.7.27", + "better-auth": "1.7.28", "hono": "^4.13.7", "kysely": "^0.29.5", "pg": "^8.16.0", diff --git a/packages/auth/package.json b/packages/auth/package.json index 7bbd622..970da5b 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -12,7 +12,7 @@ "./better-auth-workers": "./src/better-auth-workers.ts" }, "dependencies": { - "better-auth": "1.7.27", + "better-auth": "1.7.28", "jose": "^6.2.18" }, "peerDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index abe5b00..3156b9e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -237,8 +237,8 @@ importers: specifier: workspace:* version: link:../../packages/stripe better-auth: - specifier: 1.7.27 - version: 1.7.27(pg@8.23.1)(vitest@5.1.2(@types/node@24.19.4)(vite@8.2.2(@types/node@24.19.4)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)(yaml@2.9.0))) + specifier: 1.7.28 + version: 1.7.28(pg@8.23.1)(vitest@5.1.2(@types/node@24.19.4)(vite@8.2.2(@types/node@24.19.4)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)(yaml@2.9.0))) hono: specifier: ^4.13.7 version: 4.13.23 @@ -265,8 +265,8 @@ importers: packages/auth: dependencies: better-auth: - specifier: 1.7.27 - version: 1.7.27(pg@8.23.1)(vitest@5.1.2(@types/node@24.19.4)(vite@8.2.2(@types/node@24.19.4)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)(yaml@2.9.0))) + specifier: 1.7.28 + version: 1.7.28(pg@8.23.1)(vitest@5.1.2(@types/node@24.19.4)(vite@8.2.2(@types/node@24.19.4)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)(yaml@2.9.0))) jose: specifier: ^6.2.18 version: 6.2.18 @@ -331,8 +331,8 @@ packages: '@balena/dockerignore@1.0.2': resolution: {integrity: sha512-wMue2Sy4GAVTk6Ic4tJVcnfdau+gx2EnG7S+uAEe+TWJFqE4YoWN4/H8MSLj4eYJKxGg26lZwboEniNiNwZQ6Q==} - '@better-auth/core@1.7.27': - resolution: {integrity: sha512-g66vJqg82xUM6kIsY2Sb03UnbcIuFojUoe+tuBh7eyHOCgHXWBcoI/ZLEIUPo0DVTrCwFzZ9PUPoSxm6fmJXig==} + '@better-auth/core@1.7.28': + resolution: {integrity: sha512-hg2RD1FWup0zAbdVG+LqOquho7LW166OzcQXFp05a/GKlLZyYzhSDussFd5Rlzh8sNnwWKeiSK5Wz3QEBzoWWA==} peerDependencies: '@better-auth/utils': ^0.4.2 || ^0.5.0 '@better-fetch/fetch': 1.3.3 @@ -345,46 +345,46 @@ packages: '@opentelemetry/api': optional: true - '@better-auth/drizzle-adapter@1.7.27': - resolution: {integrity: sha512-dVqcVLUGzMFMGt5Wv8xQy/PcpuBMPgqIeiht6+kj8FX9Gk+6dxa9QZh1CMcg4ZhxOC/NO13OZyatR3ztYqmqLQ==} + '@better-auth/drizzle-adapter@1.7.28': + resolution: {integrity: sha512-L8Xw/3hDpXvEZwlPAOogpgFSQ8sPunGQM3BG6dFXWZkXRIXjp3ZJOITu2oS2oWkIRn7L/8V1FGJJY6pbqYmraQ==} peerDependencies: - '@better-auth/core': ^1.7.27 + '@better-auth/core': ^1.7.28 '@better-auth/utils': ^0.4.2 || ^0.5.0 drizzle-orm: ^0.45.2 || >=1.0.0-rc.1 <2.0.0 peerDependenciesMeta: drizzle-orm: optional: true - '@better-auth/kysely-adapter@1.7.27': - resolution: {integrity: sha512-VKaYAZbkXgDP7bREZXdR4eznYBFqOFKGZWF2vXUdydHWNpzxG/CJMhDq4nCM8ce42JJQvOXDibwzEa9Jhal14g==} + '@better-auth/kysely-adapter@1.7.28': + resolution: {integrity: sha512-4YVzRfcGtyrFaltk0Nv9TnN6bba2KUxP6pSmw+lqt5KO6vnXSg1gpTGAgZwuMKhpvVLvnO7Eilc+CWXet2c3Gg==} peerDependencies: - '@better-auth/core': ^1.7.27 + '@better-auth/core': ^1.7.28 '@better-auth/utils': ^0.4.2 || ^0.5.0 kysely: ^0.28.17 || ^0.29.0 peerDependenciesMeta: kysely: optional: true - '@better-auth/memory-adapter@1.7.27': - resolution: {integrity: sha512-0D1/9zYI/U4JgYtQsOrGF4H0hVZe7jHq+1yhZmzNUkEYbr9LADJy149B+OKBW0OxL7XmtC+9xY8YtrUJA8EYzQ==} + '@better-auth/memory-adapter@1.7.28': + resolution: {integrity: sha512-LPGyUbkQDinwRq7bE42sVeNvy8Q4ynear6TZwkZF34OAheaTsfKZnvIVFMjUZkIJ+Japv9ziALD4x15OZtyoJA==} peerDependencies: - '@better-auth/core': ^1.7.27 + '@better-auth/core': ^1.7.28 '@better-auth/utils': ^0.4.2 || ^0.5.0 - '@better-auth/mongo-adapter@1.7.27': - resolution: {integrity: sha512-Jpy4bsGpFVi51uIv9ZKyk0LM3LLa5VTikEhhAhILFqX49w5kX2Q8EqXkEtbd3AgC2eC/bpH5hp5+46/QiuA1Lg==} + '@better-auth/mongo-adapter@1.7.28': + resolution: {integrity: sha512-k1jaHxALobvohPHtt1qjhQKCAVtINVT88ae7b3ZPh7QSM+otuPDlh4MuNhT+RZ/4DNYa6UL30Fq6HhpetzaqqA==} peerDependencies: - '@better-auth/core': ^1.7.27 + '@better-auth/core': ^1.7.28 '@better-auth/utils': ^0.4.2 || ^0.5.0 mongodb: ^6.0.0 || ^7.0.0 peerDependenciesMeta: mongodb: optional: true - '@better-auth/prisma-adapter@1.7.27': - resolution: {integrity: sha512-IuyThkvPYLeHP9NHSYZuTXisx9Ps1goe6wtEDSqXf4ndhaMY940S8Z9hgcD8NCn7LqI9FHrJFvCbq1XHIb0GWg==} + '@better-auth/prisma-adapter@1.7.28': + resolution: {integrity: sha512-30Q/+HMqwsFQ+HeLLUwZ01F52Dh6F65Syl4o88QoNDn1VN9CFDvhPl2lojHr2dREzQoRlov6VMZBE/PMrFoB+w==} peerDependencies: - '@better-auth/core': ^1.7.27 + '@better-auth/core': ^1.7.28 '@better-auth/utils': ^0.4.2 || ^0.5.0 '@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0 prisma: ^5.0.0 || ^6.0.0 || ^7.0.0 @@ -394,10 +394,10 @@ packages: prisma: optional: true - '@better-auth/telemetry@1.7.27': - resolution: {integrity: sha512-cbp4qo/Tia70+FJp3a8pC+jiCcOMbZAkuJlnx9ffpzWt+tTVAj22L1sq91BcwheuCWBWehK15yGYkb5UjN4uWA==} + '@better-auth/telemetry@1.7.28': + resolution: {integrity: sha512-a798mVvOqvUHEikjggFDLnxgm+1MJI7f03eslJc4zp/vElsNw9TC2gnT4Flg/BeLuemMe8liD5SRJmM3TaG9XQ==} peerDependencies: - '@better-auth/core': ^1.7.27 + '@better-auth/core': ^1.7.28 '@better-auth/utils': ^0.4.2 || ^0.5.0 '@better-fetch/fetch': 1.3.3 @@ -1272,8 +1272,8 @@ packages: bcrypt-pbkdf@1.0.2: resolution: {integrity: sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==} - better-auth@1.7.27: - resolution: {integrity: sha512-UPkaFZ16tjxXa6BeTCqu1H8Tfw9xY38nPhxBb6Sh88RjJNrO4GBXSDRfpxTn61uMFC0q/XrIUJ6i0/MEPOw7zg==} + better-auth@1.7.28: + resolution: {integrity: sha512-Ux3LBegiy6O8txablum7sGB4+6SXefOeEoiiHbs8Aj0bOmW6uPNgzLj8BTNZV1Ov10UmH7CFf0fvgqX9TUeIjQ==} peerDependencies: '@lynx-js/react': '*' '@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0 @@ -2759,7 +2759,7 @@ snapshots: '@balena/dockerignore@1.0.2': {} - '@better-auth/core@1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3)': + '@better-auth/core@1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3)': dependencies: '@better-auth/utils': 0.5.1 '@better-fetch/fetch': 1.3.3 @@ -2770,36 +2770,36 @@ snapshots: nanostores: 1.5.3 zod: 4.5.4 - '@better-auth/drizzle-adapter@1.7.27(@better-auth/core@1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1)': + '@better-auth/drizzle-adapter@1.7.28(@better-auth/core@1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1)': dependencies: - '@better-auth/core': 1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3) + '@better-auth/core': 1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3) '@better-auth/utils': 0.5.1 - '@better-auth/kysely-adapter@1.7.27(@better-auth/core@1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1)(kysely@0.29.9)': + '@better-auth/kysely-adapter@1.7.28(@better-auth/core@1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1)(kysely@0.29.9)': dependencies: - '@better-auth/core': 1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3) + '@better-auth/core': 1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3) '@better-auth/utils': 0.5.1 optionalDependencies: kysely: 0.29.9 - '@better-auth/memory-adapter@1.7.27(@better-auth/core@1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1)': + '@better-auth/memory-adapter@1.7.28(@better-auth/core@1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1)': dependencies: - '@better-auth/core': 1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3) + '@better-auth/core': 1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3) '@better-auth/utils': 0.5.1 - '@better-auth/mongo-adapter@1.7.27(@better-auth/core@1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1)': + '@better-auth/mongo-adapter@1.7.28(@better-auth/core@1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1)': dependencies: - '@better-auth/core': 1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3) + '@better-auth/core': 1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3) '@better-auth/utils': 0.5.1 - '@better-auth/prisma-adapter@1.7.27(@better-auth/core@1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1)': + '@better-auth/prisma-adapter@1.7.28(@better-auth/core@1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1)': dependencies: - '@better-auth/core': 1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3) + '@better-auth/core': 1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3) '@better-auth/utils': 0.5.1 - '@better-auth/telemetry@1.7.27(@better-auth/core@1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)': + '@better-auth/telemetry@1.7.28(@better-auth/core@1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)': dependencies: - '@better-auth/core': 1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3) + '@better-auth/core': 1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3) '@better-auth/utils': 0.5.1 '@better-fetch/fetch': 1.3.3 @@ -3403,15 +3403,15 @@ snapshots: dependencies: tweetnacl: 0.14.5 - better-auth@1.7.27(pg@8.23.1)(vitest@5.1.2(@types/node@24.19.4)(vite@8.2.2(@types/node@24.19.4)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)(yaml@2.9.0))): + better-auth@1.7.28(pg@8.23.1)(vitest@5.1.2(@types/node@24.19.4)(vite@8.2.2(@types/node@24.19.4)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)(yaml@2.9.0))): dependencies: - '@better-auth/core': 1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3) - '@better-auth/drizzle-adapter': 1.7.27(@better-auth/core@1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1) - '@better-auth/kysely-adapter': 1.7.27(@better-auth/core@1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1)(kysely@0.29.9) - '@better-auth/memory-adapter': 1.7.27(@better-auth/core@1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1) - '@better-auth/mongo-adapter': 1.7.27(@better-auth/core@1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1) - '@better-auth/prisma-adapter': 1.7.27(@better-auth/core@1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1) - '@better-auth/telemetry': 1.7.27(@better-auth/core@1.7.27(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3) + '@better-auth/core': 1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3) + '@better-auth/drizzle-adapter': 1.7.28(@better-auth/core@1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1) + '@better-auth/kysely-adapter': 1.7.28(@better-auth/core@1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1)(kysely@0.29.9) + '@better-auth/memory-adapter': 1.7.28(@better-auth/core@1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1) + '@better-auth/mongo-adapter': 1.7.28(@better-auth/core@1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1) + '@better-auth/prisma-adapter': 1.7.28(@better-auth/core@1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1) + '@better-auth/telemetry': 1.7.28(@better-auth/core@1.7.28(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-call@1.4.6(zod@4.5.4))(jose@6.2.18)(kysely@0.29.9)(nanostores@1.5.3))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3) '@better-auth/utils': 0.5.1 '@better-fetch/fetch': 1.3.3 '@noble/ciphers': 2.4.0 diff --git a/tests/integration/snapshots/better-auth-cookies.json b/tests/integration/snapshots/better-auth-cookies.json index d101636..6352666 100644 --- a/tests/integration/snapshots/better-auth-cookies.json +++ b/tests/integration/snapshots/better-auth-cookies.json @@ -1,3 +1,3 @@ [ - "__Host-pgstencil.session_token=znQJVUNBKgzMDfXmgy4tNwbzdAxy8Zpo.zBzOyU8x%2BWdTnRtM0x1jxEZDwz5qsEsXwqiYn3HRJMk%3D; Max-Age=86400; Path=/; HttpOnly; Secure; SameSite=Lax" + "__Host-pgstencil.session_token=WUE21FXrpzK25M6JkIkC2CnTS34plZ2u.PPhMXVYFn51UTB58RoFRU9ySvJEx%2BT6ZkKEUvcAiXho%3D; Max-Age=86400; Path=/; HttpOnly; Secure; SameSite=Lax" ] diff --git a/tests/integration/snapshots/better-auth-session.json b/tests/integration/snapshots/better-auth-session.json index 1c90d94..69a6bad 100644 --- a/tests/integration/snapshots/better-auth-session.json +++ b/tests/integration/snapshots/better-auth-session.json @@ -3,12 +3,12 @@ "createdAt": "2020-01-01T00:00:00.000Z", "emailAuthenticated": true, "expiresAt": "2020-01-02T00:00:00.000Z", - "id": "Z4QlCqqJmzirhpnjxhm1hzgQNDhFSWGL", + "id": "znQJVUNBKgzMDfXmgy4tNwbzdAxy8Zpo", "ipAddress": "127.0.0.1", "singleSession": false, - "token": "znQJVUNBKgzMDfXmgy4tNwbzdAxy8Zpo", + "token": "WUE21FXrpzK25M6JkIkC2CnTS34plZ2u", "updatedAt": "2020-01-01T00:00:00.000Z", "userAgent": "", - "userId": "WUE21FXrpzK25M6JkIkC2CnTS34plZ2u" + "userId": "bwvVXqVLKBczH9YszivbMD7xZs8efFOk" } ] diff --git a/tests/integration/snapshots/billing/status.json b/tests/integration/snapshots/billing/status.json index bbd7d93..b9b4308 100644 --- a/tests/integration/snapshots/billing/status.json +++ b/tests/integration/snapshots/billing/status.json @@ -6,8 +6,8 @@ "cancel_at_period_end": false, "end_reason": null, "ended_at": null, - "id": "sub_w7C3rfCJSeBMAUHt", - "owner_id": "jqA6VlbZ1K4GrKS9aUQe7FgrckZrZA0M", + "id": "sub_MCk-RqE3hPYeCa-c", + "owner_id": "OHwuerzNiiwOkmtWXqazhH1xgT4hc1Vt", "period_end": "2020-01-15T00:00:00.000Z", "price_id": "price_dev_yearly", "started_at": "2020-01-01T00:00:00.000Z", diff --git a/tests/integration/snapshots/billing/stripe-requests.json b/tests/integration/snapshots/billing/stripe-requests.json index c4286a7..a55128e 100644 --- a/tests/integration/snapshots/billing/stripe-requests.json +++ b/tests/integration/snapshots/billing/stripe-requests.json @@ -2,9 +2,9 @@ { "body": { "email": "alice@example.test", - "metadata[pgstencil_owner]": "jqA6VlbZ1K4GrKS9aUQe7FgrckZrZA0M" + "metadata[pgstencil_owner]": "OHwuerzNiiwOkmtWXqazhH1xgT4hc1Vt" }, - "key": "D_OgPdV19cIvkrF1ykesk_OrFCxiC7p0MCk-RqE3hPY", + "key": "gH2lSz6u_itOGqkZ5v9DPPBuO_QCW9_7IX6ga3z7OHs", "method": "POST", "path": "/v1/customers" }, @@ -12,21 +12,21 @@ "body": { "allowed_payment_method_types[0]": "card", "cancel_url": "/billing", - "client_reference_id": "jqA6VlbZ1K4GrKS9aUQe7FgrckZrZA0M", - "customer": "cus_HgmvnMSvObCu4iIM", + "client_reference_id": "OHwuerzNiiwOkmtWXqazhH1xgT4hc1Vt", + "customer": "cus_0nmnsfOSj-MgCIoi", "expires_at": "1577840400", "line_items[0][price]": "price_dev_yearly", "line_items[0][quantity]": "1", - "metadata[pgstencil_operation]": "R8dOwvjxBK18jKWxM-4hcWYzE7JQT1pi-ds2_vipnBg", + "metadata[pgstencil_operation]": "3TN5eLl6ck0OQ41_uzAJdDkTgfYP86A91XX1wi-SsXU", "mode": "subscription", "payment_method_collection": "always", - "subscription_data[metadata][pgstencil_operation]": "R8dOwvjxBK18jKWxM-4hcWYzE7JQT1pi-ds2_vipnBg", - "subscription_data[metadata][pgstencil_owner]": "jqA6VlbZ1K4GrKS9aUQe7FgrckZrZA0M", + "subscription_data[metadata][pgstencil_operation]": "3TN5eLl6ck0OQ41_uzAJdDkTgfYP86A91XX1wi-SsXU", + "subscription_data[metadata][pgstencil_owner]": "OHwuerzNiiwOkmtWXqazhH1xgT4hc1Vt", "subscription_data[trial_period_days]": "14", "subscription_data[trial_settings][end_behavior][missing_payment_method]": "cancel", - "success_url": "/billing?checkout=R8dOwvjxBK18jKWxM-4hcWYzE7JQT1pi-ds2_vipnBg" + "success_url": "/billing?checkout=3TN5eLl6ck0OQ41_uzAJdDkTgfYP86A91XX1wi-SsXU" }, - "key": "R8dOwvjxBK18jKWxM-4hcWYzE7JQT1pi-ds2_vipnBg", + "key": "3TN5eLl6ck0OQ41_uzAJdDkTgfYP86A91XX1wi-SsXU", "method": "POST", "path": "/v1/checkout/sessions" }