feat: refresh token

This commit is contained in:
naiba
2024-11-05 00:02:43 +08:00
parent b1a0b607da
commit bfdae2838f
5 changed files with 35 additions and 20 deletions

View File

@@ -15,7 +15,7 @@ import { AuthProvider } from './hooks/useAuth';
const router = createBrowserRouter([
{
path: "/dashboard/",
path: "/dashboard",
element: <AuthProvider><ProtectedRoute><Root /></ProtectedRoute></AuthProvider>,
errorElement: <ErrorPage />,
children: [