Skip to content
Source
Sign inSign up
TanStack/router

fix: workos router.tsx typo + move api route into api/auth/callback.tsx #5048

Mergedmaxscn(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/5048/headmerged by SeanCassiere

Showing 3 changed files with 5 additions and 5 deletions.

x
0 of 3 viewed, 3 left
examples/react/start-workos/src/routeTree.gen.tsModified
View file
1 addition and 1 deletionexamples/react/start-workos/src/router.tsxModified
View file
@@ -12,6 +12,6 @@
​
declare module '@tanstack/react-router' {
interface Register {
- rotuer: ReturnType<typeof createRouter>;
+ router: ReturnType<typeof createRouter>;
4 additions and 4 deletionsexamples/react/start-workos/src/routes/callback.tsxrenamed toexamples/react/start-workos/src/routes/api/auth/callback.tsxRenamed
View file
@@ -1,9 +1,9 @@
import { createServerFileRoute } from '@tanstack/react-start/server';
-import { getConfig } from '../authkit/ssr/config';
-import { saveSession } from '../authkit/ssr/session';
-import { getWorkOS } from '../authkit/ssr/workos';
+import { getConfig } from '../../../authkit/ssr/config';
+import { saveSession } from '../../../authkit/ssr/session';
+import { getWorkOS } from '../../../authkit/ssr/workos';
​
-export const ServerRoute = createServerFileRoute('/callback').methods({