Download frontend/src/api/auth.js from Seth0330/keeai: direct link, hf CLI and curl.
- Browser
- Download file 318 Bytes
-
https://huggingface.co/spaces/Seth0330/keeai/resolve/main/frontend/src/api/auth.js
- Command line
-
hf download hf://spaces/Seth0330/keeai/frontend/src/api/auth.js
-
curl -L -o auth.js https://huggingface.co/spaces/Seth0330/keeai/resolve/main/frontend/src/api/auth.js
318 Bytes
| // frontend/src/api/auth.js | |
| import api from "./client"; | |
| export async function requestOtp(email) { | |
| const res = await api.post("/auth/request-otp", { email }); | |
| return res.data; | |
| } | |
| export async function loginWithOtp({ email, otp }) { | |
| const res = await api.post("/auth/login", { email, otp }); | |
| return res.data; | |
| } | |