oauth
.env.env.development.env.productionindex.htmlpackage.json
run.zshpublic
src
App.cssApp.tsx
tsconfig.jsontsconfig.node.jsonvite.config.tscomponents
Card.tsxCardBox.tsxCardList.tsxCollectionAnalysis.tsxGachaAnimation.tsxGachaStats.tsxLogin.tsxOAuthCallback.tsxOAuthCallbackPage.tsx
config
main.tsxservices
styles
types
utils
23
oauth/src/main.tsx
Normal file
23
oauth/src/main.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom/client'
|
||||
import { BrowserRouter, Routes, Route } from 'react-router-dom'
|
||||
import App from './App'
|
||||
import { OAuthCallbackPage } from './components/OAuthCallbackPage'
|
||||
import { CardList } from './components/CardList'
|
||||
import { OAuthEndpointHandler } from './utils/oauth-endpoints'
|
||||
|
||||
// Initialize OAuth endpoint handlers for dynamic client metadata and JWKS
|
||||
// DISABLED: This may interfere with BrowserOAuthClient
|
||||
// OAuthEndpointHandler.init()
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('comment-atproto')!).render(
|
||||
<React.StrictMode>
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
<Route path="/oauth/callback" element={<OAuthCallbackPage />} />
|
||||
<Route path="/list" element={<CardList />} />
|
||||
<Route path="*" element={<App />} />
|
||||
</Routes>
|
||||
</BrowserRouter>
|
||||
</React.StrictMode>,
|
||||
)
|
Reference in New Issue
Block a user