Skip to content

Commit

Permalink
check sms api추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sehyun0518 committed Feb 13, 2024
1 parent 1ebeb43 commit cec6810
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/apis/sms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export const sendSMSAPI = (data: sendSMSRequest) => {
return axios.post<APIResponse<smsResponse>>(PREFIX + '/sendSMS', data);
};

export const checkSMSAPI = (data : checkSMSRequest) => {
return axios.post<APIResponse<smsResponse>>(PREFIX + '/checkSMS', data);
export const checkSMSAPI = (data : checkSMSRequest, token : string) => {
return axios.post<APIResponse<smsResponse>>(PREFIX + '/checkSMS', data, {
headers : { Authorization : `Bearer ${token}`}
});
}
3 changes: 2 additions & 1 deletion src/models/sms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ export interface sendSMSRequest {
}

export interface checkSMSRequest {
verification_code : string;
verification_code : number;
}

export interface smsResponse {
success : boolean;
message : string;
token : string;
}

0 comments on commit cec6810

Please sign in to comment.