From c82110f7d3a2f85de99045fde7b579e369f15b2c Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Sat, 28 Oct 2023 09:05:00 +0700 Subject: Update authentication feature --- src-migrate/services/auth.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src-migrate/services') diff --git a/src-migrate/services/auth.ts b/src-migrate/services/auth.ts index feaabec8..a5d02754 100644 --- a/src-migrate/services/auth.ts +++ b/src-migrate/services/auth.ts @@ -6,6 +6,8 @@ import { ActivationTokenResApiProps, ActivationOtpProps, ActivationOtpResApiProps, + ActivationReqProps, + ActivationReqResApiProps, } from '~/common/types/auth'; const BASE_PATH = '/api/v1/user'; @@ -37,3 +39,15 @@ export const activationUserOTP = async ( return response; }; + +export const activationReq = async ( + params: ActivationReqProps +): Promise => { + const response = await odooApi( + 'POST', + `${BASE_PATH}/activation-request`, + params + ); + + return response; +}; -- cgit v1.2.3