Skip to content

Commit 3c63ed8

Browse files
NicolappsConvex, Inc.
authored andcommitted
workos: Use AuthTokenFetcher from convex/react (#42719)
GitOrigin-RevId: d026819581ae772a6633fda018527488cfcf5e00
1 parent c9b0f5a commit 3c63ed8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

npm-packages/@convex-dev/workos/src/index.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { useCallback, useMemo } from "react";
22
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>;
3+
import { ConvexProviderWithAuth, type AuthTokenFetcher } from "convex/react";
94

105
type IConvexReactClient = {
116
setAuth(fetchToken: AuthTokenFetcher): void;

0 commit comments

Comments
 (0)