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/common/types/auth.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src-migrate/common/types/auth.ts') diff --git a/src-migrate/common/types/auth.ts b/src-migrate/common/types/auth.ts index 3d9ffee4..ca7b562a 100644 --- a/src-migrate/common/types/auth.ts +++ b/src-migrate/common/types/auth.ts @@ -27,7 +27,7 @@ export type RegisterProps = { export type RegisterResApiProps = { register: boolean; - reason: 'EMAIL_USED' | null; + reason: 'EMAIL_USED' | 'NOT_ACTIVE' | null; }; type ActivationResProps = { @@ -51,3 +51,12 @@ export type ActivationOtpProps = { export type ActivationOtpResApiProps = ActivationResProps & { reason: 'INVALID_OTP' | null; }; + +export type ActivationReqProps = { + email: string; +}; + +export type ActivationReqResApiProps = { + activation_request: boolean; + reason: 'NOT_FOUND' | 'ACTIVE' | null; +}; -- cgit v1.2.3