You need to be signed in to access this page.
+ + }> +This is a protected page. You can only see this because you're authenticated!
++ Name:{' '} + {user?.givenName || user?.name?.givenName || user?.given_name}{' '} + {user?.name?.familyName || user?.familyName || user?.family_name || ''} +
++ Email: {user?.email || 'N/A'} +
++ Username: {user?.username || 'N/A'} +
+Loading user information...
+ )} +Active Projects
+Tasks Completed
+Team Members
+Success Rate
+
+ This Dashboard page is wrapped with the ProtectedRoute
component from{' '}
+ @asgardeo/tanstack-router
. This ensures that only authenticated users can access this page.
+
+ If an unauthenticated user tries to access this route, they will be redirected to the home page + automatically. +
++ This is a sample application demonstrating the integration of Asgardeo authentication with TanStack Router. +
+ + {!isSignedIn && ( +Powered by Asgardeo
+Built with TanStack Router
+Easy route protection
+
+ This sample demonstrates how to use the @asgardeo/tanstack-router
package to protect routes in
+ your TanStack Router application. The Dashboard page is protected and requires authentication to access.
+
+ Try signing in and navigating to the Dashboard to see the ProtectedRoute
component in action!
+