David Prince
fix: add all missing local module stubs (remote_mcp_registry, mcp_auth, mcp_transport, etc)
cce8120 | import api from "../api"; | |
| export async function login(username,password){ | |
| const {data}=await api.post("/api/auth/login",{ | |
| username, | |
| password | |
| }); | |
| localStorage.setItem("access_token",data.access_token); | |
| return data; | |
| } | |
| export async function logout(){ | |
| localStorage.removeItem("access_token"); | |
| } | |
| export async function profile(){ | |
| const {data}=await api.get("/api/auth/me"); | |
| return data; | |
| } | |
| export async function refresh(){ | |
| const {data}=await api.post("/api/auth/refresh"); | |
| localStorage.setItem("access_token",data.access_token); | |
| return data; | |
| } | |