- src/main.jsx: add /login, /register, /profile/* routes; wire profileComponents from react-auth; pass basePath to Admin - src/Header.tsx: profile button nav to /profile/me; Login to /login - src/openapi-config.ts: wire getToken and profileComponents - react-auth local: sync ProfileCreate, ProfileEdit, ProfileView - react-openapi local: sync all auth + x-profile changes (AppProvider, Admin, ProfileRoutes, SideMenu, types, hooks, etc.)
13 lines
565 B
TypeScript
13 lines
565 B
TypeScript
export { AuthProvider, useAuth } from "./contexts";
|
|
export { createApiClient } from "./axios";
|
|
export { AuthPage } from "./AuthPage";
|
|
export { ProfileCreate } from "./ProfileCreate";
|
|
export { ProfileEdit } from "./ProfileEdit";
|
|
export { ProfileView } from "./ProfileView";
|
|
export type { AuthUser } from "./models";
|
|
export type { AuthMode } from "./AuthPage";
|
|
export type { ProfileCreateProps } from "./ProfileCreate";
|
|
export type { ProfileEditProps } from "./ProfileEdit";
|
|
export type { ProfileViewProps } from "./ProfileView";
|
|
export { tokenStore } from "./token"
|