1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Standalone pages to view an OAuth client and a browser session

This commit is contained in:
Quentin Gliech
2022-11-16 17:47:25 +01:00
parent 78778648ca
commit 6021aa691c
9 changed files with 418 additions and 5 deletions

View File

@@ -19,6 +19,8 @@ import Layout from "./components/Layout";
import LoadingSpinner from "./components/LoadingSpinner";
const Home = lazy(() => import("./pages/Home"));
const OAuth2Client = lazy(() => import("./pages/OAuth2Client"));
const BrowserSession = lazy(() => import("./pages/BrowserSession"));
export const router = createHashRouter([
{
@@ -39,6 +41,14 @@ export const router = createHashRouter([
path: "dumb",
element: <>Hello from another dumb page.</>,
},
{
path: "client/:id",
element: <OAuth2Client />,
},
{
path: "session/:id",
element: <BrowserSession />,
},
],
},
]);