create-disposabl-app 0.11.0 → 0.12.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/dist/disposabl.js +1 -1
- package/dist/index.js +1 -1
- package/dist/templates/default/apps/web/src/routeTree.gen.ts +31 -0
- package/dist/templates/default/apps/web/src/router/mobile-login.tsx +84 -0
- package/dist/templates/default/bun.lock +2 -2
- package/dist/templates/default/package.json +1 -1
- package/dist/templates/default/packages/backend/convex/authSetup.ts +9 -1
- package/dist/templates/default/packages/disposabl-kit/lib/indexing.ts +1 -0
- package/dist/templates/default/packages/disposabl-kit/server/lib/static.ts +7 -0
- package/dist/templates/default/vendor/README.md +7 -4
- package/dist/templates/default/vendor/convex-auth-437831bd-disposabl.3.tgz +0 -0
- package/package.json +1 -1
- package/dist/templates/default/vendor/convex-auth-437831bd-disposabl.1.tgz +0 -0
package/dist/disposabl.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
|
8
8
|
import { Command, CommanderError } from "commander";
|
|
9
9
|
import * as p2 from "@clack/prompts";
|
|
10
10
|
// package.json
|
|
11
|
-
var version = "0.
|
|
11
|
+
var version = "0.12.0";
|
|
12
12
|
|
|
13
13
|
// ../disposabl-kit/platforms.ts
|
|
14
14
|
var platforms = [
|
|
@@ -16,6 +16,7 @@ import { Route as DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesConsen
|
|
|
16
16
|
import { Route as DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesForgotPasswordRouteImport } from './../../../packages/disposabl-kit/client/routes/_auth-pages/forgot-password'
|
|
17
17
|
import { Route as DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesLegalIndexRouteImport } from './../../../packages/disposabl-kit/client/routes/legal/index'
|
|
18
18
|
import { Route as DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesLoginRouteImport } from './../../../packages/disposabl-kit/client/routes/_auth-pages/login'
|
|
19
|
+
import { Route as MobileLoginRouteImport } from './router/mobile-login'
|
|
19
20
|
import { Route as DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesPricingRouteImport } from './../../../packages/disposabl-kit/client/routes/pricing'
|
|
20
21
|
import { Route as DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesResetPasswordRouteImport } from './../../../packages/disposabl-kit/client/routes/_auth-pages/reset-password'
|
|
21
22
|
import { Route as DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesSignUpRouteImport } from './../../../packages/disposabl-kit/client/routes/_auth-pages/signUp'
|
|
@@ -86,6 +87,12 @@ const DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesLoginRout
|
|
|
86
87
|
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesRouteRoute,
|
|
87
88
|
} as any,
|
|
88
89
|
)
|
|
90
|
+
const MobileLoginRoute = MobileLoginRouteImport.update({
|
|
91
|
+
id: '/mobile-login',
|
|
92
|
+
path: '/mobile-login',
|
|
93
|
+
getParentRoute: () =>
|
|
94
|
+
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesRouteRoute,
|
|
95
|
+
} as any)
|
|
89
96
|
const DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesPricingRoute =
|
|
90
97
|
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesPricingRouteImport.update(
|
|
91
98
|
{
|
|
@@ -191,6 +198,7 @@ export interface FileRoutesByFullPath {
|
|
|
191
198
|
'/consent': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesConsentRoute
|
|
192
199
|
'/forgot-password': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesForgotPasswordRoute
|
|
193
200
|
'/login': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesLoginRoute
|
|
201
|
+
'/mobile-login': typeof MobileLoginRoute
|
|
194
202
|
'/pricing': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesPricingRoute
|
|
195
203
|
'/reset-password': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesResetPasswordRoute
|
|
196
204
|
'/signup': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesSignUpRoute
|
|
@@ -210,6 +218,7 @@ export interface FileRoutesByTo {
|
|
|
210
218
|
'/consent': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesConsentRoute
|
|
211
219
|
'/forgot-password': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesForgotPasswordRoute
|
|
212
220
|
'/login': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesLoginRoute
|
|
221
|
+
'/mobile-login': typeof MobileLoginRoute
|
|
213
222
|
'/pricing': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesPricingRoute
|
|
214
223
|
'/reset-password': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesResetPasswordRoute
|
|
215
224
|
'/signup': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesSignUpRoute
|
|
@@ -231,6 +240,7 @@ export interface FileRoutesById {
|
|
|
231
240
|
'/_providers/consent': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesConsentRoute
|
|
232
241
|
'/_providers/forgot-password': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesForgotPasswordRoute
|
|
233
242
|
'/_providers/login': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesLoginRoute
|
|
243
|
+
'/_providers/mobile-login': typeof MobileLoginRoute
|
|
234
244
|
'/_providers/pricing': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesPricingRoute
|
|
235
245
|
'/_providers/reset-password': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesResetPasswordRoute
|
|
236
246
|
'/_providers/signup': typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesSignUpRoute
|
|
@@ -253,6 +263,7 @@ export interface FileRouteTypes {
|
|
|
253
263
|
| '/consent'
|
|
254
264
|
| '/forgot-password'
|
|
255
265
|
| '/login'
|
|
266
|
+
| '/mobile-login'
|
|
256
267
|
| '/pricing'
|
|
257
268
|
| '/reset-password'
|
|
258
269
|
| '/signup'
|
|
@@ -272,6 +283,7 @@ export interface FileRouteTypes {
|
|
|
272
283
|
| '/consent'
|
|
273
284
|
| '/forgot-password'
|
|
274
285
|
| '/login'
|
|
286
|
+
| '/mobile-login'
|
|
275
287
|
| '/pricing'
|
|
276
288
|
| '/reset-password'
|
|
277
289
|
| '/signup'
|
|
@@ -292,6 +304,7 @@ export interface FileRouteTypes {
|
|
|
292
304
|
| '/_providers/consent'
|
|
293
305
|
| '/_providers/forgot-password'
|
|
294
306
|
| '/_providers/login'
|
|
307
|
+
| '/_providers/mobile-login'
|
|
295
308
|
| '/_providers/pricing'
|
|
296
309
|
| '/_providers/reset-password'
|
|
297
310
|
| '/_providers/signup'
|
|
@@ -363,6 +376,13 @@ declare module '@tanstack/react-router' {
|
|
|
363
376
|
preLoaderRoute: typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesLoginRouteImport
|
|
364
377
|
parentRoute: typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesRouteRoute
|
|
365
378
|
}
|
|
379
|
+
'/_providers/mobile-login': {
|
|
380
|
+
id: '/_providers/mobile-login'
|
|
381
|
+
path: '/mobile-login'
|
|
382
|
+
fullPath: '/mobile-login'
|
|
383
|
+
preLoaderRoute: typeof MobileLoginRouteImport
|
|
384
|
+
parentRoute: typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesRouteRoute
|
|
385
|
+
}
|
|
366
386
|
'/_providers/pricing': {
|
|
367
387
|
id: '/_providers/pricing'
|
|
368
388
|
path: '/pricing'
|
|
@@ -490,6 +510,7 @@ interface DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesRouteRouteChil
|
|
|
490
510
|
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesConsentRoute: typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesConsentRoute
|
|
491
511
|
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesForgotPasswordRoute: typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesForgotPasswordRoute
|
|
492
512
|
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesLoginRoute: typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesLoginRoute
|
|
513
|
+
MobileLoginRoute: typeof MobileLoginRoute
|
|
493
514
|
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesPricingRoute: typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesPricingRoute
|
|
494
515
|
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesResetPasswordRoute: typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesResetPasswordRoute
|
|
495
516
|
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesSignUpRoute: typeof DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesSignUpRoute
|
|
@@ -512,6 +533,7 @@ const DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesRouteRouteChildren
|
|
|
512
533
|
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesForgotPasswordRoute,
|
|
513
534
|
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesLoginRoute:
|
|
514
535
|
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesLoginRoute,
|
|
536
|
+
MobileLoginRoute: MobileLoginRoute,
|
|
515
537
|
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesPricingRoute:
|
|
516
538
|
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesPricingRoute,
|
|
517
539
|
DotDotDotDotDotDotDotDotPackagesDisposablKitClientRoutesAuthPagesResetPasswordRoute:
|
|
@@ -545,3 +567,12 @@ const rootRouteChildren: RootRouteChildren = {
|
|
|
545
567
|
export const routeTree = rootRouteImport
|
|
546
568
|
._addFileChildren(rootRouteChildren)
|
|
547
569
|
._addFileTypes<FileRouteTypes>()
|
|
570
|
+
|
|
571
|
+
import type { getRouter } from './router.tsx'
|
|
572
|
+
import type { createStart } from '@tanstack/react-start'
|
|
573
|
+
declare module '@tanstack/react-start' {
|
|
574
|
+
interface Register {
|
|
575
|
+
ssr: true
|
|
576
|
+
router: Awaited<ReturnType<typeof getRouter>>
|
|
577
|
+
}
|
|
578
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { useEffect, useState } from "react";
|
|
2
|
+
import { createFileRoute } from "@tanstack/react-router";
|
|
3
|
+
import { useAuthActions } from "@convex-dev/auth/react";
|
|
4
|
+
import { useMutation, useQuery } from "convex/react";
|
|
5
|
+
import { api } from "../../../../packages/backend/convex/_generated/api";
|
|
6
|
+
import { PasswordPage } from "../../../../packages/disposabl-kit/client/components/password-page";
|
|
7
|
+
import { Button } from "@disposabl/disposabl-kit/client/components/ui/button";
|
|
8
|
+
|
|
9
|
+
export const Route = createFileRoute("/_providers/mobile-login")({
|
|
10
|
+
component: MobileLogin,
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
function MobileLogin() {
|
|
14
|
+
const [framed] = useState(
|
|
15
|
+
() => typeof window !== "undefined" && window.top !== window.self,
|
|
16
|
+
);
|
|
17
|
+
const [code] = useState(() =>
|
|
18
|
+
typeof window === "undefined" ? "" : window.location.hash.slice(1),
|
|
19
|
+
);
|
|
20
|
+
const account = useQuery(
|
|
21
|
+
api.browserHandoff.inspect,
|
|
22
|
+
code && !framed ? { code } : "skip",
|
|
23
|
+
);
|
|
24
|
+
const redeem = useMutation(api.browserHandoff.redeem);
|
|
25
|
+
const { setSession } = useAuthActions();
|
|
26
|
+
const [pending, setPending] = useState(false);
|
|
27
|
+
const [error, setError] = useState("");
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
// Keep this single-use credential out of history, referrers and subsequent navigation.
|
|
30
|
+
window.history.replaceState(
|
|
31
|
+
window.history.state,
|
|
32
|
+
"",
|
|
33
|
+
window.location.pathname,
|
|
34
|
+
);
|
|
35
|
+
}, []);
|
|
36
|
+
async function proceed() {
|
|
37
|
+
if (pending || !account?.name) return;
|
|
38
|
+
setPending(true);
|
|
39
|
+
try {
|
|
40
|
+
const session = await redeem({ code });
|
|
41
|
+
await setSession(session);
|
|
42
|
+
window.location.replace("/dashboard/connections?origin=mobile");
|
|
43
|
+
} catch {
|
|
44
|
+
setError(
|
|
45
|
+
"This link could not sign you in. Open connections again from the app.",
|
|
46
|
+
);
|
|
47
|
+
setPending(false);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return (
|
|
51
|
+
<PasswordPage
|
|
52
|
+
title="Continue from the app"
|
|
53
|
+
description="Use your signed-in Disposabl account to connect your services."
|
|
54
|
+
>
|
|
55
|
+
{framed ? (
|
|
56
|
+
<p role="alert">Open this link directly in your browser.</p>
|
|
57
|
+
) : code && account === undefined ? (
|
|
58
|
+
<p>Checking your account…</p>
|
|
59
|
+
) : account?.name ? (
|
|
60
|
+
<>
|
|
61
|
+
<p className="break-words font-medium">{account.name}</p>
|
|
62
|
+
<p>This signs this browser into the account shown above.</p>
|
|
63
|
+
<Button
|
|
64
|
+
className="min-h-12 w-full"
|
|
65
|
+
disabled={pending}
|
|
66
|
+
onClick={() => void proceed()}
|
|
67
|
+
>
|
|
68
|
+
{pending ? "Signing in…" : `Continue as ${account.name}`}
|
|
69
|
+
</Button>
|
|
70
|
+
</>
|
|
71
|
+
) : account ? (
|
|
72
|
+
<p role="alert">
|
|
73
|
+
Your account is signed in, but its email is missing. Reconnect Google
|
|
74
|
+
in the app to confirm which account this browser should use.
|
|
75
|
+
</p>
|
|
76
|
+
) : (
|
|
77
|
+
<p role="alert">
|
|
78
|
+
This link expired. Open connections again from the app.
|
|
79
|
+
</p>
|
|
80
|
+
)}
|
|
81
|
+
{error && <p role="alert">{error}</p>}
|
|
82
|
+
</PasswordPage>
|
|
83
|
+
);
|
|
84
|
+
}
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
"lightningcss": "1.30.1",
|
|
288
288
|
},
|
|
289
289
|
"catalog": {
|
|
290
|
-
"@convex-dev/auth": "file:vendor/convex-auth-437831bd-disposabl.
|
|
290
|
+
"@convex-dev/auth": "file:vendor/convex-auth-437831bd-disposabl.3.tgz",
|
|
291
291
|
"@convex-dev/mcp": "0.1.0-alpha.7",
|
|
292
292
|
"@convex-dev/static-hosting": "0.2.1",
|
|
293
293
|
"convex": "^1.49.0",
|
|
@@ -470,7 +470,7 @@
|
|
|
470
470
|
|
|
471
471
|
"@colors/colors": ["@colors/colors@1.5.0", "", {}, "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ=="],
|
|
472
472
|
|
|
473
|
-
"@convex-dev/auth": ["@convex-dev/auth@vendor/convex-auth-437831bd-disposabl.
|
|
473
|
+
"@convex-dev/auth": ["@convex-dev/auth@vendor/convex-auth-437831bd-disposabl.3.tgz", { "dependencies": { "@babel/code-frame": "^7.29.7", "@convex-dev/batch-worker": "^0.3.2", "@convex-dev/rate-limiter": "^0.3.2", "@simplewebauthn/browser": "^14.0.0", "@simplewebauthn/server": "^14.0.0", "argon2id-wasm": "0.0.0-alpha.2", "chalk": "^5.6.2", "commander": "^14.0.2", "cookie": "1.1.1", "jose": "^5.2.2" }, "peerDependencies": { "@convex-dev/resend": "^0.2.8", "convex": "^1.48.0", "next": "^16.0.0", "react": "^18.0.0 || ^19.0.0" }, "optionalPeers": ["@convex-dev/resend", "next", "react"], "hasInstallScript": true, "bin": { "@convex-dev/auth": "./dist/cli/init.js" } }, "sha512-ILtdtp/jnXthIDBCuUJ0Xwb/HFVuwbigdKgpBNYux39s0jjkKk50RPpxFivP9S6IsWd6Wl4uzQFe4dQGmCaavA=="],
|
|
474
474
|
|
|
475
475
|
"@convex-dev/batch-worker": ["@convex-dev/batch-worker@0.3.6", "", { "dependencies": { "convex-helpers": "^0.1.127" }, "peerDependencies": { "convex": "^1.43.0" } }, "sha512-tR+9DaHR3jG3oqkIFX0ok/6944h7UHEQgT6HTmiuxU+lERYuYMsxA2IWwFD5yTFbCpO3YJhqXU4QdGY90sgUqQ=="],
|
|
476
476
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"packages/*"
|
|
30
30
|
],
|
|
31
31
|
"catalog": {
|
|
32
|
-
"@convex-dev/auth": "file:vendor/convex-auth-437831bd-disposabl.
|
|
32
|
+
"@convex-dev/auth": "file:vendor/convex-auth-437831bd-disposabl.3.tgz",
|
|
33
33
|
"convex": "^1.49.0",
|
|
34
34
|
"lucide-react": "^1.70.0",
|
|
35
35
|
"react": "19.3.0",
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { setupConvexAuth } from "@convex-dev/auth/server";
|
|
2
2
|
import { components } from "./_generated/api";
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const sessionTtl = {
|
|
5
|
+
accessTokenTtlSeconds: 60,
|
|
6
|
+
refreshInactivityTimeoutSeconds: 30 * 24 * 60 * 60,
|
|
7
|
+
sessionMaxLifetimeSeconds: 30 * 24 * 60 * 60,
|
|
8
|
+
};
|
|
9
|
+
export const auth = setupConvexAuth({
|
|
10
|
+
component: components.auth,
|
|
11
|
+
...sessionTtl,
|
|
12
|
+
});
|
|
@@ -85,6 +85,13 @@ export function registerPageRoutes(http: HttpRouter) {
|
|
|
85
85
|
? "no-cache"
|
|
86
86
|
: "public, max-age=3600",
|
|
87
87
|
"X-Content-Type-Options": "nosniff",
|
|
88
|
+
...(path.replace(/\/$/, "") === "/mobile-login"
|
|
89
|
+
? {
|
|
90
|
+
"Content-Security-Policy": "frame-ancestors 'none'",
|
|
91
|
+
"X-Frame-Options": "DENY",
|
|
92
|
+
"Cache-Control": "no-store",
|
|
93
|
+
}
|
|
94
|
+
: {}),
|
|
88
95
|
...(page?.authenticated || isAccountPage(path)
|
|
89
96
|
? { "X-Robots-Tag": "noindex" }
|
|
90
97
|
: {}),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Convex Auth snapshot
|
|
2
2
|
|
|
3
|
-
`convex-auth-437831bd-disposabl.
|
|
3
|
+
`convex-auth-437831bd-disposabl.3.tgz` is `@convex-dev/auth` version `2.0.0-beta.0-reboot.437831bd-disposabl.3`, built from [convex/convex-auth](https://github.com/convex/convex-auth) commit [`437831bdd0990c9faac305f60354e53aec91cd36`](https://github.com/convex/convex-auth/commit/437831bdd0990c9faac305f60354e53aec91cd36), with the changes below. The archive contains source, compiled JavaScript, declarations, and the upstream Apache 2.0 license. SHA-256: `d98796ba391859edcf95892d8a66b919fdd5f4dbc355de3ee68186525d473c87`.
|
|
4
4
|
|
|
5
5
|
Relative to that commit, the only source changes under `packages/core/src` are:
|
|
6
6
|
|
|
@@ -8,26 +8,29 @@ Relative to that commit, the only source changes under `packages/core/src` are:
|
|
|
8
8
|
- `lib/oauth/dbHelpers.ts`: use `CALLBACK_URL` when set, otherwise retain the upstream callback URL.
|
|
9
9
|
- `lib/oauth/authorize.ts`: accept an optional asynchronous `authorizationState` callback and use its result as the OAuth authorization URL's state; the original state remains with the browser.
|
|
10
10
|
- `methods/google/server.ts`: expose and pass through that callback in `GoogleProviderOptions`.
|
|
11
|
+
- `component/public.ts`: add an app-server-only `exchangeSession` operation. It validates source ownership, revocation, inactivity, maximum lifetime and account existence, then uses the existing session issuer to create independent browser credentials. The application must authenticate the source or atomically redeem a single-use handoff before calling it. Component API metadata includes this operation.
|
|
12
|
+
|
|
13
|
+
- `browser/sessionManager.ts`: serialize session adoption with the existing cross-tab refresh mutex so an older refresh cannot overwrite a newly selected account.
|
|
11
14
|
|
|
12
15
|
These extensions support password-only deployments and shared preview callbacks. The application signs and verifies the preview routing envelope; see [Google setup](../packages/disposabl-kit/GOOGLE_AUTH.md). They do not replace Convex Auth's PKCE or native state validation.
|
|
13
16
|
|
|
14
17
|
## Rebuild
|
|
15
18
|
|
|
16
|
-
Use Node and pnpm versions compatible with the upstream checkout. The archive itself is the source of
|
|
19
|
+
Use Node and pnpm versions compatible with the upstream checkout. The archive itself is the source of these changes, so no separate install-time patch is required. From a clean checkout of the exact upstream commit, with this archive at `$AUTH_ARCHIVE`:
|
|
17
20
|
|
|
18
21
|
```sh
|
|
19
22
|
git checkout 437831bdd0990c9faac305f60354e53aec91cd36
|
|
20
23
|
pnpm install --frozen-lockfile
|
|
21
24
|
mkdir -p /tmp/disposabl-auth-source
|
|
22
25
|
tar -xzf "$AUTH_ARCHIVE" -C /tmp/disposabl-auth-source
|
|
23
|
-
for path in components/google/convex.config.ts lib/oauth/authorize.ts lib/oauth/dbHelpers.ts methods/google/server.ts; do
|
|
26
|
+
for path in components/google/convex.config.ts lib/oauth/authorize.ts lib/oauth/dbHelpers.ts methods/google/server.ts component/public.ts component/_generated/component.ts browser/sessionManager.ts; do
|
|
24
27
|
cp "/tmp/disposabl-auth-source/package/src/$path" "packages/core/src/$path"
|
|
25
28
|
done
|
|
26
29
|
git diff -- packages/core/src
|
|
27
30
|
pnpm --filter @convex-dev/auth build
|
|
28
31
|
cp /tmp/disposabl-auth-source/package/LICENSE packages/core/LICENSE
|
|
29
32
|
cd packages/core
|
|
30
|
-
npm pkg set version=2.0.0-beta.0-reboot.437831bd-disposabl.
|
|
33
|
+
npm pkg set version=2.0.0-beta.0-reboot.437831bd-disposabl.3
|
|
31
34
|
npm pack --ignore-scripts
|
|
32
35
|
```
|
|
33
36
|
|
package/package.json
CHANGED
|
Binary file
|