diff --git a/src/api/authorization/linkUserReservation.ts b/src/api/authorization/linkUserReservation.ts
index 89275d7a..066ef369 100644
--- a/src/api/authorization/linkUserReservation.ts
+++ b/src/api/authorization/linkUserReservation.ts
@@ -3,7 +3,9 @@ import API from '../axiosIntance';
export const linkUserReservation = async (phone: string) => {
try {
const response = await API.post('/reservation/link-user', {
- phone: phone,
+ params: {
+ phone: phone,
+ },
});
return response.data;
diff --git a/src/routes/PrivateRoute.tsx b/src/routes/PrivateRoute.tsx
index cdcc9156..d863b105 100644
--- a/src/routes/PrivateRoute.tsx
+++ b/src/routes/PrivateRoute.tsx
@@ -1,15 +1,15 @@
-import { Navigate, Outlet, useLocation } from 'react-router-dom';
+import { Navigate, Outlet } from 'react-router-dom';
import { useAuthStore } from '../store/useAuthStore';
export default function PrivateRoute({ role }: { role: 'USER' | 'ADMIN' }) {
const { userInfo } = useAuthStore();
- const location = useLocation();
+ // const location = useLocation();
if (!userInfo) return ;
- if (!userInfo.phone && location.pathname !== '/authorization/callback') {
- return ;
- }
+ // if (!userInfo.phone && location.pathname !== '/authorization/callback') {
+ // return ;
+ // }
if (userInfo.role !== role) {
return (