Skip to content

Commit

Permalink
feat: change name associate with invite
Browse files Browse the repository at this point in the history
  • Loading branch information
timepresent95 committed Oct 10, 2024
1 parent 59541ed commit d7181e7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/api/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ async function reIssueToken() {
return await kyInstance.patch(authApis.reIssueToken).json<ResponseToken>();
}

type QueryValidateFamilyCode = {
familyCode: string;
type QueryValidateInviteCode = {
inviteCode: string;
};

type ResponseValidateFamilyCode = {
type ResponseValidateInviteCode = {
isValidate: boolean;
};

async function validateFamilyCode(query: QueryValidateFamilyCode) {
async function validateInviteCode(query: QueryValidateInviteCode) {
const apiUrl = createUrl(authApis.validateFamilyCode, { query });
return await kyInstance.get(apiUrl).json<ResponseValidateFamilyCode>();
return await kyInstance.get(apiUrl).json<ResponseValidateInviteCode>();
}

type BodyReRegistrationAlertToken = {
Expand All @@ -73,14 +73,14 @@ export {
postSignIn,
getSignOut,
reIssueToken,
validateFamilyCode,
validateInviteCode,
reRegistrationAlertToken,
};
export type {
BodySignUp,
ResponseToken,
BodySignIn,
QueryValidateFamilyCode,
ResponseValidateFamilyCode,
QueryValidateInviteCode,
ResponseValidateInviteCode,
BodyReRegistrationAlertToken,
};

0 comments on commit d7181e7

Please sign in to comment.