diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-28 09:05:00 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-28 09:05:00 +0700 |
| commit | c82110f7d3a2f85de99045fde7b579e369f15b2c (patch) | |
| tree | deae1b959583eff4fa283800efe6daaff9fe21e9 /src-migrate/services | |
| parent | cf6da809621b4ebe8c9acedb035b689e7e1b60b1 (diff) | |
Update authentication feature
Diffstat (limited to 'src-migrate/services')
| -rw-r--r-- | src-migrate/services/auth.ts | 14 |
1 files changed, 14 insertions, 0 deletions
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<ActivationReqResApiProps> => { + const response = await odooApi( + 'POST', + `${BASE_PATH}/activation-request`, + params + ); + + return response; +}; |
