Add authentication layer
This commit is contained in:
@ -1,5 +1,10 @@
|
||||
import { AuthApi } from "./api/AuthApi";
|
||||
import { ServerApi } from "./api/ServerApi";
|
||||
import { LoginRoute } from "./routes/LoginRoute";
|
||||
|
||||
export function App() {
|
||||
return <LoginRoute />;
|
||||
if (!AuthApi.SignedIn && !ServerApi.Config.auth_disabled)
|
||||
return <LoginRoute />;
|
||||
|
||||
return <>logged in todo</>;
|
||||
}
|
||||
|
Reference in New Issue
Block a user