diff --git a/src/api/auth.ts b/src/api/auth.ts index c256219..03d3f18 100644 --- a/src/api/auth.ts +++ b/src/api/auth.ts @@ -46,17 +46,17 @@ async function reIssueToken() { return await kyInstance.patch(authApis.reIssueToken).json(); } -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(); + return await kyInstance.get(apiUrl).json(); } type BodyReRegistrationAlertToken = { @@ -73,14 +73,14 @@ export { postSignIn, getSignOut, reIssueToken, - validateFamilyCode, + validateInviteCode, reRegistrationAlertToken, }; export type { BodySignUp, ResponseToken, BodySignIn, - QueryValidateFamilyCode, - ResponseValidateFamilyCode, + QueryValidateInviteCode, + ResponseValidateInviteCode, BodyReRegistrationAlertToken, };