mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Step 5: rename lowercase local vars stackApp/stackServerApp/stackClientApp/ stackAdminApp -> hexclave* across SDK source, apps, examples, and docs-mintlify (docs/ excluded). Public StackServerApp/StackClientApp classes and the useStackApp hook are unchanged. typecheck + lint green.
19 lines
475 B
TypeScript
19 lines
475 B
TypeScript
"use client";
|
|
|
|
import { hexclaveClientApp } from "@/hexclave/client";
|
|
import { ConvexProvider, ConvexReactClient } from "convex/react";
|
|
import { ReactNode } from "react";
|
|
|
|
const convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_URL!);
|
|
convex.setAuth(
|
|
hexclaveClientApp.getConvexClientAuth({})
|
|
);
|
|
|
|
export default function ConvexClientProvider({
|
|
children,
|
|
}: {
|
|
children: ReactNode;
|
|
}) {
|
|
return <ConvexProvider client={convex}>{children}</ConvexProvider>;
|
|
}
|