Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
File size: 560 Bytes
3263f99 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import api from "./http";
import { AuthResponse, PublicConfig, UserInfo } from "./types";
// βββ Auth API βββββββββββββββββββββββββββββββββββββββββββββ
export const googleLogin = (credential: string) =>
api.post<AuthResponse>("/auth/google", { credential });
export const getMe = () => api.get<UserInfo>("/auth/me");
export const logoutCleanup = () => api.post("/auth/logout");
export const getPublicConfig = () => api.get<PublicConfig>("/config/public");
|