File tree Expand file tree Collapse file tree
samples/react-tanstack-router/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,8 +39,6 @@ createRoot(document.getElementById('root')!).render(
3939 < AsgardeoProvider
4040 baseUrl = { import . meta. env . VITE_ASGARDEO_BASE_URL }
4141 clientId = { import . meta. env . VITE_ASGARDEO_CLIENT_ID }
42- signInUrl = "/signin"
43- signUpUrl = "/signup"
4442 scopes = "openid profile email"
4543 >
4644 < RouterProvider router = { router } />
Original file line number Diff line number Diff line change @@ -19,7 +19,11 @@ export default function Home() {
1919 </ >
2020 ) : (
2121 < SignInButton >
22- { ( { isLoading} ) => < button disabled = { isLoading } > { isLoading ? 'Loading...' : 'Sign In' } </ button > }
22+ { ( { isLoading, signIn} ) => (
23+ < button onClick = { signIn } disabled = { isLoading } >
24+ { isLoading ? 'Loading...' : 'Sign In' }
25+ </ button >
26+ ) }
2327 </ SignInButton >
2428 ) }
2529 </ div >
@@ -34,7 +38,11 @@ export default function Home() {
3438 { ! isSignedIn && (
3539 < div >
3640 < SignInButton >
37- { ( { isLoading} ) => < button disabled = { isLoading } > { isLoading ? 'Loading...' : 'Get Started' } </ button > }
41+ { ( { isLoading, signIn} ) => (
42+ < button onClick = { signIn } disabled = { isLoading } >
43+ { isLoading ? 'Loading...' : 'Get Started' }
44+ </ button >
45+ ) }
3846 </ SignInButton >
3947 </ div >
4048 ) }
You can’t perform that action at this time.
0 commit comments