We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f8f3f6 commit 9e4fe76Copy full SHA for 9e4fe76
1 file changed
tools/diagnostics-app/src/routes/index.tsx
@@ -13,7 +13,8 @@ import React from 'react';
13
import { useInitError } from '@/components/providers/SystemProvider';
14
15
const searchSchema = z.object({
16
- token: z.string().optional()
+ token: z.string().optional(),
17
+ endpoint: z.string().optional()
18
});
19
20
type LoginFormValues = {
@@ -26,7 +27,7 @@ export const Route = createFileRoute('/')({
26
27
beforeLoad: async ({ search }) => {
28
// Handle deep-link auto-sign-in with ?token= query param
29
if (search.token) {
- const endpoint = getTokenEndpoint(search.token);
30
+ const endpoint = search.endpoint ?? getTokenEndpoint(search.token);
31
if (!endpoint) {
32
throw new Error('endpoint is required');
33
}
0 commit comments