import request from "./request" ; import encrypt from "./encrypt" ; /** 비밀번호 설정 결과 */ export interface RegisterPasswordResult { success : boolean ; } param endpoint param token param password export async function registerPassword ( endpoint , token , password ) { const data = { deviceUuid : "" , password : encrypt ( password ) } ; const response = await request ( "/v2/registerPassword" , "POST" , data , endpoint , token ) ; return { success : response } ; }