We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AuthTokenFetcher
convex/react
1 parent c9b0f5a commit 3c63ed8Copy full SHA for 3c63ed8
npm-packages/@convex-dev/workos/src/index.tsx
@@ -1,11 +1,6 @@
1
import { useCallback, useMemo } from "react";
2
import { type ReactNode } from "react";
3
-import { ConvexProviderWithAuth } from "convex/react";
4
-
5
-// TODO replace with AuthTokenFetcher from "convex/browser" once it's out.
6
-type AuthTokenFetcher = (args: {
7
- forceRefreshToken: boolean;
8
-}) => Promise<string | null | undefined>;
+import { ConvexProviderWithAuth, type AuthTokenFetcher } from "convex/react";
9
10
type IConvexReactClient = {
11
setAuth(fetchToken: AuthTokenFetcher): void;
0 commit comments