feat: 添加用户认证功能,包括登录、注册、GitHub/Gitee OAuth集成及相关路由配置。
This commit is contained in:
@@ -15,6 +15,7 @@ import TaxCalculatorPage from '../pages/TaxCalculatorPage';
|
||||
import Login from '../pages/Login/Login';
|
||||
import Profile from '../pages/Profile';
|
||||
import GitHubCallback from '../pages/GitHubCallback';
|
||||
import GiteeCallback from '../pages/GiteeCallback';
|
||||
import Notifications from '../pages/Notifications';
|
||||
import Layout from '../components/common/Layout';
|
||||
import ProtectedRoute from '../components/common/ProtectedRoute';
|
||||
@@ -36,6 +37,10 @@ export const router = createBrowserRouter([
|
||||
path: '/auth/github/callback',
|
||||
element: <GitHubCallback />,
|
||||
},
|
||||
{
|
||||
path: '/auth/gitee/callback',
|
||||
element: <GiteeCallback />,
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
element: <ProtectedRoute><Layout /></ProtectedRoute>,
|
||||
|
||||
Reference in New Issue
Block a user