This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export async function loader({ request, params }: LoaderFunctionArgs) { | |
| if (params.path === "callback") { | |
| const { searchParams } = new URL(request.url); | |
| const code = searchParams.get("code"); | |
| if (code) { | |
| const response = await fetch(import.meta.env.VITE_AUTH_URL + "/token", { | |
| method: "POST", | |
| body: new URLSearchParams({ | |
| grant_type: "authorization_code", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { asQueryInternals, queryInternalsTag } from "@rocicorp/zero/bindings"; | |
| import type { AST, Condition, CorrelatedSubquery } from "@rocicorp/zero"; | |
| import type { Schema } from "@vestia/zero/schema"; | |
| /** | |
| * Tables where soft-deleted rows should STILL be synced to the client | |
| * so that child replies can render with "[deleted]" placeholders. | |
| * | |
| * For these tables, the mutator must zero out `body` (and any other | |
| * sensitive fields) at soft-delete time. The client renders "[deleted]" |