|
|
@@ -122,10 +122,17 @@
|
|
|
let _req = {
|
|
|
SEQ: useStoreAuth.getSnsTempData.user.SEQ,
|
|
|
GOOGLE_REFRESH_TOKEN: useStoreAuth.getSnsTempData.user.GOOGLE_REFRESH_TOKEN,
|
|
|
+ KAKAO_REFRESH_TOKEN: useStoreAuth.getSnsTempData.user.KAKAO_REFRESH_TOKEN,
|
|
|
};
|
|
|
|
|
|
+ let _uri = useStoreAuth.getSnsTempData.user.GOOGLE_REFRESH_TOKEN
|
|
|
+ ? "/auth/withdrawal"
|
|
|
+ : useStoreAuth.getSnsTempData.user.KAKAO_REFRESH_TOKEN
|
|
|
+ ? "/auth/kakaowithdrawal"
|
|
|
+ : "/auth/withdrawal";
|
|
|
+
|
|
|
useAxios()
|
|
|
- .post("/auth/withdrawal", _req)
|
|
|
+ .post(_uri, _req)
|
|
|
.then((res) => {
|
|
|
localStorage.removeItem("tempAccess");
|
|
|
useStore.getSnsTempData = "";
|
|
|
@@ -158,6 +165,7 @@
|
|
|
| 라이프사이클 : onMounted
|
|
|
************************************************************************/
|
|
|
onMounted(() => {
|
|
|
+ console.log(useStoreAuth.getSnsTempData.user);
|
|
|
userId.value = localStorage.getItem("tempAccess");
|
|
|
userName.value = JSON.parse(localStorage.getItem("authStore"))?.auth.name;
|
|
|
userCompanyName.value = JSON.parse(
|