upd: proses login

nb: blm selesai
This commit is contained in:
amel
2025-04-11 17:54:42 +08:00
parent 1447144e2e
commit b6b23742d2
5 changed files with 207 additions and 33 deletions

View File

@@ -9,6 +9,12 @@ export const apiCheckPhoneLogin = async (body: { phone: string }) => {
return response.data;
}
export const apiSendOtp = async (body: { phone: string, otp:number }) => {
const res = await axios.get(`https://wa.wibudev.com/code?nom=${body.phone}&text=*DARMASABA*%0A%0A
JANGAN BERIKAN KODE RAHASIA ini kepada siapa pun TERMASUK PIHAK DARMASABA. Masukkan otentikasi: *${encodeURIComponent(body.otp)}*`)
return res.status
}
// export const getEntities = async () => {
// const response = await axios.get('https://stg-darmasaba.wibudev.com/api/version-app');
// return response.data;