File tree Expand file tree Collapse file tree
tools/diagnostics-app/src/routes Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' @powersync/diagnostics-app ' : patch
3+ ---
4+
5+ Support endpoint query parameter for deeplinks.
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ import React from 'react';
1313import { useInitError } from '@/components/providers/SystemProvider' ;
1414
1515const searchSchema = z . object ( {
16- token : z . string ( ) . optional ( )
16+ token : z . string ( ) . optional ( ) ,
17+ endpoint : z . string ( ) . optional ( )
1718} ) ;
1819
1920type LoginFormValues = {
@@ -26,7 +27,7 @@ export const Route = createFileRoute('/')({
2627 beforeLoad : async ( { search } ) => {
2728 // Handle deep-link auto-sign-in with ?token= query param
2829 if ( search . token ) {
29- const endpoint = getTokenEndpoint ( search . token ) ;
30+ const endpoint = search . endpoint ?? getTokenEndpoint ( search . token ) ;
3031 if ( ! endpoint ) {
3132 throw new Error ( 'endpoint is required' ) ;
3233 }
You can’t perform that action at this time.
0 commit comments